I have 250 Execution rules. Today, I evaluate them 1 at a time in a loop in order. The first one that evaluates true stops the loop. I save off the result and which rule was used.
I would like to use a ruleset for performance reasons. Is there a way to know which rule (or rules depending on behavior) evaluated true? Maybe an array of the ruleids?
Declare a "state" field in your source class and set its value to the rule evaluation result for each rule in your ruleset. Check the value of that field after the evaluation of your ruleset is finished to determine which rule(s) has evaluated to true:
The rule example: