Click or drag to resize
ExpressionEvalCompute Method (IVariableContainer, ICompiledExpression, Boolean)
Computes and executes a compiled expression

Namespace: FlexRule.DynamicEvaluation
Assembly: FlexRule.Core.Library (in FlexRule.Core.Library.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public abstract Object Compute(
	IVariableContainer variables,
	ICompiledExpression expression,
	bool shortCircuit = true
)

Parameters

variables
Type: FlexRuleIVariableContainer
Variables of the expression
expression
Type: FlexRule.DynamicEvaluationICompiledExpression
Compiled expression
shortCircuit (Optional)
Type: SystemBoolean
Always short circuit OR, AND operators

Return Value

Type: Object
Result of the computed expression that can be in any type

Implements

IEvalEngineCompute(IVariableContainer, ICompiledExpression, Boolean)
Exceptions
ExceptionCondition
ParserExceptionWhen parsing of expression is failed due to any reason that can be identified by ParserError
EvaluatorExceptionWhen evaluation of an expression fails that can be identifies by EvaluationError
See Also