A conditional action allows for conditional execution of action blocks. This is essentially a set of if-then blocks (with successive if-then blocks separated by an “else” ) and an optional else block (without a condition).
If (Boolean-Expression) then Action-Block
If (Boolean-Expression) then Action-Block
else
Action-Block
If (Boolean-Eexpression) then Action-Block
...
Else if (Boolean-Expression) then
Action-Block
...
Where Action-Block = Action1 Action2 … Actionk
If (CustomerSchema:CreditHistory Equals "Good") then |
|
Execute rule "CalculateDiscountsRule" |
|
Else if (CustomerSchema:CreditHistory Equals "Average") then |
|
Execute rule "CalculateNonDiscountsRule" |