Is there any provision to set priority for rule to pickup preferred success event value in case both rules are TRUE? #212
Unanswered
Balasaheb Sherkar (bala3011s)
asked this question in
Q&A
Replies: 1 comment
|
Hi Balasaheb Sherkar (@bala3011s) , the current priority is based on the ordering of rules. There is no explicit way to set priority of which rule it picks up. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
{ "WorkflowName": "inputWorkflow", "Rules": [ { "RuleName": "GiveDiscount20", "SuccessEvent": "20", "ErrorMessage": "One or more adjust rules failed.", "ErrorType": "Error", "RuleExpressionType": "LambdaExpression", "Expression": "input1.country == \"india\" AND input1.loyalityFactor >= 2 AND input1.totalPurchasesToDate >= 10000 AND input2.totalOrders > 2 AND input3.noOfVisitsPerMonth > 2" }, { "RuleName": "GiveDiscount25", "SuccessEvent": "25", "ErrorMessage": "One or more adjust rules failed.", "ErrorType": "Error", "RuleExpressionType": "LambdaExpression", "Expression": "input1.country != \"india\" AND input1.loyalityFactor >= 2 AND input1.totalPurchasesToDate >= 10000 AND input2.totalOrders > 2 AND input3.noOfVisitsPerMonth > 5" } ] }All reactions