Class DecisionModelElement
All classes that represent elements of a DecisionModel must inherit from this class.
Inheritance
DecisionModelElement
Assembly: WMServer.dll
Syntax
[HasDTO(typeof(DecisionModelElementDTO))]
public class DecisionModelElement : DecisionModelBase, IDocumentedEntity, INamedEntity, IDbEntity, IWMEntity, IFullyQualifiable
Constructors
DecisionModelElement()
Declaration
public DecisionModelElement()
DecisionModelElement(string)
Declaration
public DecisionModelElement(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Properties
FullyQualifiedName
Declaration
[NotMapped]
public string FullyQualifiedName { get; }
Property Value
Identifier
Declaration
public string? Identifier { get; set; }
Property Value
Model
Declaration
public DecisionModel? Model { get; set; }
Property Value
OwnerID
Owner of the Decision Model
Declaration
public string? OwnerID { get; set; }
Property Value
OwnerType
Declaration
public string? OwnerType { get; set; }
Property Value
Parent
Reference to the parent model element's ID.
Declaration
public IFullyQualifiable? Parent { get; set; }
Property Value
ParentDirectory
Reference to the asset's parent in the model.
Declaration
public virtual WMAssetDirectory ParentDirectory { get; set; }
Property Value
Properties
Custom properties defined by the user
Declaration
public Dictionary<string, string> Properties { get; set; }
Property Value
Role
Declaration
public string? Role { get; set; }
Property Value
Type
Type of Decision Model Element.
Declaration
public string Type { get; set; }
Property Value
TypeKeyMap
Map logical DecisionModelElement type names to classes.
Declaration
public static Dictionary<string, Type> TypeKeyMap { get; }
Property Value
Methods
GetElement(WMPrincipal, string, WMAppDbContext)
Gets the decision model element with id
. This element may be a Decision Model Element, Decision Model Diagram Element, or any other DME derived element.
Declaration
public static Task<DecisionModelElement> GetElement(WMPrincipal principal, string id, WMAppDbContext context)
Parameters
Returns
GetFromDecisionModel(WMPrincipal, DecisionModel, WMAppDbContext)
Declaration
public static Task<ICollection<DecisionModelElement>> GetFromDecisionModel(WMPrincipal principal, DecisionModel model, WMAppDbContext context)
Parameters
Returns
ToWMAsset()
Convert to an IWMAsset object
Declaration
public IWMAsset ToWMAsset()
Returns
Implements