-
I'm trying to use the RulesEngine to run these rules until one succeeds and then execute the Actions for the "winning" rule. I found a response to a previous question about making the rules short circuit when one succeeds, but my actions don't seem to be executing for child rules. Is there a configuration what would allow for both short circuiting rules and executing the actions on child rules? { "WorkflowName": "TestRuleSet", "Rules": [ { "RuleName": "CheckState", "Operator": "Or", "Enabled": true, "ErrorType": "Warning", "RuleExpressionType": "LambdaExpression", "Rules": [ { "RuleName": "Rule1", "ErrorMessage": "Error when evaluating Rule1", "Enabled": true, "ErrorType": "Warning", "RuleExpressionType": "LambdaExpression", "Expression": "input1.Vehicle.Make == \"NotFord\"", "Actions": { "onSuccess": { "Name": "OutputExpression", "Context": { "Expression": "ResultActions.SendEmail(\"8a9d18c6-7541-4939-ab5a-12835ea1bf93\")" } } }, "SuccessEvent": "ResultActions.SendEmail(\"8a9d18c6-7541-4939-ab5a-12835ea1bf93\")" }, { "RuleName": "Rule2", "ErrorMessage": "Error when evaluating Rule2", "Enabled": true, "ErrorType": "Warning", "RuleExpressionType": "LambdaExpression", "Expression": "input1.Vehicle.Make == \"Ford\"", "Actions": { "onSuccess": { "Name": "OutputExpression", "Context": { "Expression": "ResultActions.CreateTask(1)" } } }, "SuccessEvent": "ResultActions.CreateTask(1)" } ] } ] } |
Beta Was this translation helpful? Give feedback.
Answered by
abbasc52
Jun 24, 2021
Replies: 1 comment 3 replies
-
@msmucker running actions for child rules has not been implemented yet. It is being tracked as a part of this issue - #89 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
msmucker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@msmucker running actions for child rules has not been implemented yet. It is being tracked as a part of this issue - #89