Defining the Rule: Decision Table
There are two ways you can define rules—either by using IF/THEN or by using Decision Tables. By using a Decision Table, you can create and use business rules in an easy-to-understand format that provides an alternative to the IF/THEN rule format, and it displays multiple related rules in a single spreadsheet-style view. In Rules Designer, a Decision Table presents a collection of related business rules with condition rows, rules, and actions, presented in a tabular form that is easy to understand.
You will use Decision Table for Check Customer rules and use if-then-else for DiscountCheck rules. For the Check Customer rule, you have following scenario :
First case, if the input
Quote.customer type
isNew
andQuantity
is in the range of0
to10
, thenEffective Discount
will have a 10% increment and other values will be set as follows:If
Quote.CustomerType == New
andQuote.Quantity
is between 0-10, thenSet ApprovalFlow.CustomerType = True Set ApprovalFlow...