Eg:
Rule1: Check if Person's Country is 'United States'
Rule2: Check if Person's State is 'Washington, D.C.'
Now Rule3 is combination of Rule1 and Rule2
Rule3: if Rule1 then Rule2
here Rule2 is an action that will be executed if Rule1 is true
I know I can achieve this problem by writing If Rule1 and Rule2 then execute Some Action Method, but the main intention behind this question is: I want to execute another rule as an Action. How can I achieve it using CodeEffects?
The use of a rule as rule action is not supported because this could lead to logical issues and hard-to-detect circular dependencies.
Use either Loop or Ruleset mode. Details can be found here