Skip to content

Rule Expressions and short circuit evaluation #446

Answered by abbasc52
bmasotta-lcg asked this question in Q&A

You must be logged in to vote

@bmasotta-lcg Short circuiting using nested rules works only if you enable perf mode in ReSettings. You can refer this example.

[InlineData(NestedRuleExecutionMode.All)]
[InlineData(NestedRuleExecutionMode.Performance)]
public async Task NestedRulesShouldFollowExecutionMode(NestedRuleExecutionMode mode)
{
var workflow = GetWorkflow();
var reSettings = new ReSettings { NestedRuleExecutionMode = mode };
var rulesEngine = new RulesEngine(workflow, reSettings: reSettings);
dynamic input1 = new ExpandoObject();
input1.trueValue = true;
List<RuleResult…

Replies: 3 comments 2 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@bmasotta

Answer selected by bmasotta-lcg

You must be logged in to vote
1 reply
@SolzIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants