Show / Hide Table of Contents

Class Evaluation

Represents single evaluation of a DecisionModel.

Inheritance
object
DecisionModelBase
Evaluation
Implements
INamedEntity
IDbEntity
IWMEntity
IDocumentedEntity
IWMPrincipalOwned
IHasDecisionModel
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.Execution
Assembly: WMServer.dll
Syntax
public class Evaluation : DecisionModelBase, INamedEntity, IDbEntity, IWMEntity, IDocumentedEntity, IWMPrincipalOwned, IHasDecisionModel

Constructors

Evaluation()

Default constructor for a new Evaluation instance.

Declaration
public Evaluation()

Evaluation(string)

Constructor for a new Evaluation instance that sets the ID to the specified value.

Declaration
public Evaluation(string id)
Parameters
Type Name Description
string id

Properties

Args

The arguments associated with this Evaluation

Declaration
public EvaluationArgs Args { get; set; }
Property Value
Type Description
EvaluationArgs

DecisionModel

Reference to the DecisionModel being evaluated.

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

Owner

Reference to the WMPrincipal that owns this Evaluation.

Declaration
public WMPrincipal? Owner { get; set; }
Property Value
Type Description
WMPrincipal

ProcessorID

ID of the processor used to perform this evaluation.

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

Result

Results produced by this Evaluation

Declaration
public ElementValue Result { get; set; }
Property Value
Type Description
ElementValue

UserData

Optional data associated with the evaluation by the user.

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

Methods

Evaluate(EvaluationArgs, string, WMPrincipal, WMAppDbContext, SimulationParams?)

Declaration
public static Task<EvaluationResult> Evaluate(EvaluationArgs args, string decisionModelID, WMPrincipal principal, WMAppDbContext context, SimulationParams? simulationParams = null)
Parameters
Type Name Description
EvaluationArgs args
string decisionModelID
WMPrincipal principal
WMAppDbContext context
SimulationParams simulationParams
Returns
Type Description
Task<EvaluationResult>

OnDecisionModelChanged(string, IMemoryCache)

Called whenever a DecisionModel or one of its elements is changed. This will cause any cached processors that are attached to the Decision Model to be deleted.

Declaration
public static void OnDecisionModelChanged(string dmID, IMemoryCache cache)
Parameters
Type Name Description
string dmID
IMemoryCache cache

Implements

INamedEntity
IDbEntity
IWMEntity
IDocumentedEntity
IWMPrincipalOwned
IHasDecisionModel
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