Show / Hide Table of Contents

Class DecisionModelElement

All classes that represent elements of a DecisionModel must inherit from this class.

Inheritance
object
DecisionModelBase
DecisionModelElement
EvaluatableElement
DecisionModelDiagram
DecisionModelDiagramElement
ObjectTemplate
Implements
IDocumentedEntity
INamedEntity
IDbEntity
IWMEntity
IFullyQualifiable
Inherited Members
DecisionModelBase.ID
DecisionModelBase.CreatedBy
DecisionModelBase.CreatedDate
DecisionModelBase.LastUpdatedBy
DecisionModelBase.LastUpdatedDate
DecisionModelBase.Name
DecisionModelBase.Summary
DecisionModelBase.Documentation
DecisionModelBase.DocumentationMIMEType
DecisionModelBase.Create(Type, string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.DecisionModeler
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
Type Description
string

Identifier

Declaration
public string? Identifier { get; set; }
Property Value
Type Description
string

Model

Reference to the DecisionModel to which this element belongs.

Declaration
public DecisionModel? Model { get; set; }
Property Value
Type Description
DecisionModel

OwnerID

Owner of the Decision Model

Declaration
public string? OwnerID { get; set; }
Property Value
Type Description
string

OwnerType

Declaration
public string? OwnerType { get; set; }
Property Value
Type Description
string

Parent

Reference to the parent model element's ID.

Declaration
public IFullyQualifiable? Parent { get; set; }
Property Value
Type Description
IFullyQualifiable

ParentDirectory

Reference to the asset's parent in the model.

Declaration
public virtual WMAssetDirectory ParentDirectory { get; set; }
Property Value
Type Description
WMAssetDirectory

Properties

Custom properties defined by the user

Declaration
public Dictionary<string, string> Properties { get; set; }
Property Value
Type Description
Dictionary<string, string>

Role

Declaration
public string? Role { get; set; }
Property Value
Type Description
string

Type

Type of Decision Model Element.

Declaration
public string Type { get; set; }
Property Value
Type Description
string

TypeKeyMap

Map logical DecisionModelElement type names to classes.

Declaration
public static Dictionary<string, Type> TypeKeyMap { get; }
Property Value
Type Description
Dictionary<string, Type>

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
Type Name Description
WMPrincipal principal
string id

The ID of the decision model element.

WMAppDbContext context
Returns
Type Description
Task<DecisionModelElement>

GetFromDecisionModel(WMPrincipal, DecisionModel, WMAppDbContext)

Declaration
public static Task<ICollection<DecisionModelElement>> GetFromDecisionModel(WMPrincipal principal, DecisionModel model, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
DecisionModel model
WMAppDbContext context
Returns
Type Description
Task<ICollection<DecisionModelElement>>

ToWMAsset()

Convert to an IWMAsset object

Declaration
public IWMAsset ToWMAsset()
Returns
Type Description
IWMAsset

Implements

IDocumentedEntity
INamedEntity
IDbEntity
IWMEntity
IFullyQualifiable
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE