EvaluationMode Enumeration

Assembly: CodeEffects.Rule.Common.dll
Namespace: CodeEffects.Rule.Common.Models

Summary

Represents the mode in which the Rule Editor creates, and the Rule Engine evaluates, business rules.

Syntax

public enum EvaluationMode
{
	// Only evaluation type rules. Rule-related labels from Help XML
	Evaluation = 0,

	// Rules of both types, evaluation and execution. Rule-related labels from Help XML
	Execution = 1,

	// Only evaluation type rules. Filter-related labels from Help XML
	Filter = 2,

	// The Evaluator re-evaluates the same rule until its conditions return false
	Loop = 3,

	// The Evaluator evaluates multiple execution type rules in one step
	Ruleset = 4
}

Members

  • Evaluation

    Value: 0

    Sets the mode in which users can create only evaluation type rules. The editor uses rule-related labels from Help XML.

  • Execution

    Value: 1

    Sets the mode in which users can create rules of both types, evaluation and execution. The editor uses rule-related labels from Help XML.

  • Filter

    Value: 2

    Sets the mode in which users can create only evaluation type rules, and the editor uses filter-related labels from Help XML. Use it for rules that filter collections.

  • Loop

    Value: 3

    Instructs the Evaluator to re-evaluate the same rule over and over until its conditions return false. See EvaluationParameters.MaxIterations.

  • Ruleset

    Value: 4

    Instructs the Evaluator to evaluate multiple execution type rules in one step. See EvaluationParameters.Scope.

Remarks

See the Rule Editor Modes topic for details on the use of the EvaluationMode enumeration.

Example

using CodeEffects.Rule.Common.Models;
using CodeEffects.Rule.Editor;

var editor = new Control("divEditor")
{
	EvaluationMode = EvaluationMode.Execution,
	SourceType = typeof(Patient)
};

Ask on Stack Overflow - Yes, it's still active
Ask in GitHub Discussions

p102

l097 --

l102

p101

×