You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use the output of Rule1 as input to the next Rule ? Looking for something below. Accessing "Expression": "context.TotalAmount >= 100000", . The TotalAmount is conditionally calculated in the previous rule, and it needs to be passed to the next Rule.
Is it possible to use the output of Rule1 as input to the next Rule ? Looking for something below. Accessing
"Expression": "context.TotalAmount >= 100000",
. The TotalAmount is conditionally calculated in the previous rule, and it needs to be passed to the next Rule.{
"WorkflowName": "EvaluateRuleActionTest",
"GlobalParams": [
{
"Name": "OrderCount",
"Expression": "1 + 1"
}
],
"Rules": [
{
"RuleName": "TotalAmount5W",
"Expression": "input1 + input2 >= 50000", // Expression to evaluate
"Actions": {
"OnSuccess": [
{
"Name": "OutputExpression", // Action to output TotalAmount
"Context": {
"TotalAmount": "input1 + input2" // Setting TotalAmount conditionally
}
}
]
}
},
{
"RuleName": "TotalAmount10W",
"Expression": "context.TotalAmount >= 100000", // Accessing the TotalAmount from context
"Actions": {
"OnSuccess": [
{
"Name": "EvaluateRule",
"Context": {
"workflowName": "EvaluateRuleActionTest",
"ruleName": "TotalAmount10W"
}
}
]
}
}
]
}
The text was updated successfully, but these errors were encountered: