Class Evaluation
Represents single evaluation of a DecisionModel.
Inherited Members
Namespace: Quantellia.WMServer.Execution
Assembly: WMServer.dll
Syntax
public class Evaluation : DecisionModelBase, IDecisionModelBase, IDbEntity, IWMEntity, IDocumented, 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 |
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, string, WMAppDbContext)
Declaration
public static Task<EvaluationResult> Evaluate(EvaluationArgs args, string decisionModelID, string userID, WMAppDbContext context)
Parameters
Type | Name | Description |
---|---|---|
EvaluationArgs | args | |
string | decisionModelID | |
string | userID | |
WMAppDbContext | context |
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 |