Class DecisionModel
Represents a Decision Model.
Implements
Inherited Members
Namespace: Quantellia.WMServer.DecisionModeler
Assembly: WMServer.dll
Syntax
[HasDTO(typeof(DecisionModel))]
public class DecisionModel : WMAssetBase, IWMAsset, IDbEntity, IWMEntity, IDocumentedEntity, INamedEntity, IWMAssetDirectoryMember, IWMPrincipalOwned, IWMVersionableAsset, IWMOwnableResource, IWMResource
Constructors
DecisionModel()
Default constructor.
Declaration
public DecisionModel()
DecisionModel(string)
Constructor that specifyies the ID of the new object.
Declaration
public DecisionModel(string ID)
Parameters
| Type | Name | Description |
|---|---|---|
| string | ID |
Properties
Assets
Collection of assets that are referenced by the DecisionModel
Declaration
public virtual ICollection<IWMAsset>? Assets { get; set; }
Property Value
| Type | Description |
|---|---|
| ICollection<IWMAsset> |
Elements
Collection of elements that make up the DecisionModel
Declaration
public virtual ICollection<DecisionModelElement>? Elements { get; set; }
Property Value
| Type | Description |
|---|---|
| ICollection<DecisionModelElement> |
ImageUrl
URL of image to display
Declaration
public string? ImageUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WorkflowStatus
Indicates the current workflow status.
Declaration
public string? WorkflowStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
CreateFullyQualifiedName(IFullyQualifiable, string)
Declaration
public static string CreateFullyQualifiedName(IFullyQualifiable parent, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IFullyQualifiable | parent | |
| string | name |
Returns
| Type | Description |
|---|---|
| string |
Get(WMPrincipal, string, WMAppDbContext)
Declaration
public static Task<DecisionModel> Get(WMPrincipal principal, string id, WMAppDbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| WMPrincipal | principal | |
| string | id | |
| WMAppDbContext | context |
Returns
| Type | Description |
|---|---|
| Task<DecisionModel> |
GetDependencies(WMPrincipal, WMAssetIdentifier, WMAppDbContext)
Returns all the elements in this decision model in a format displaying their dependencies.
Declaration
public static Task<IEnumerable<ElementDependencyResults>> GetDependencies(WMPrincipal principal, WMAssetIdentifier identifier, WMAppDbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| WMPrincipal | principal | The user |
| WMAssetIdentifier | identifier | The identifier of the decision model. |
| WMAppDbContext | context |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<ElementDependencyResults>> |
GetDependencies(WMPrincipal, List<JObject>, WMAppDbContext)
Returns all the elements in this element list in a format displaying their dependencies.
Declaration
public static Task<IEnumerable<ElementDependencyResults>> GetDependencies(WMPrincipal principal, List<JObject> jElements, WMAppDbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| WMPrincipal | principal | The user |
| List<JObject> | jElements | A list containing the elements to compile. |
| WMAppDbContext | context |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<ElementDependencyResults>> |
GetSimulations(WMPrincipal, string, WMAppDbContext)
Returns all Quantellia.WMServer.Simulation instances under the provided decision model
Declaration
public static Task<IEnumerable<OpenDISimulation>> GetSimulations(WMPrincipal principal, string ID, WMAppDbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| WMPrincipal | principal | The user |
| string | ID | The ID of the decision model. |
| WMAppDbContext | context |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<OpenDISimulation>> |
ResourceDefinition()
The resource operation definition for this asset.
Declaration
public static WMResourceOperationsDefinition ResourceDefinition()
Returns
| Type | Description |
|---|---|
| WMResourceOperationsDefinition |