...
Conditions: promotion code can be applied to Travel quote only upon new business or renewal.
Example file:
View file | ||
---|---|---|
|
Field Data Inputs sheet:
There are 2 input parameters defined: quoteBusinessFlow and quoteProductName.
The data source of those 2 input parameters are quote.businessFlow and quote.productName respectively. These data field name are fixed (please do not change).
Rule Declarations sheet:
There is one rule which has 2 input parameters: quoteBusinessFlow and quoteProductName (they are defined in sheet Field Data Inputs).
And 1 output parameter, named “is_valid” (this means “Promotion code is valid or not).
“NewBusinessQuote” is the sheet name where contains decision table to get the result based on a set of input values from 2 input parameters quoteBusinessFlow and quoteProductName. So you will see a sheet “NewBusinessQuote” next to.
NewBusinessQuote sheet:
There are two conditions to check: one condition on quoteBusinessFlow. The expected values are “NewBusiness” or “Renewal” (These values are understood by the services).
And another condition on quoteProductName. The expected value is “Travel” (Please use the correct name defined in Product Builder).
From row 3, you need to list all of the conditions that the output result is_valid should be TRUE. So here are 2 valid combinations {“New Business”, “Travel”} and {“Renewal”, “Travel”), which is_valid = TRUE. And others will fall in default condition, hence is_valid = FALSE.
Condition values are case-sensitive. For ex: the value in rule sheet is defined as “Renewal”, when user provides “renewal” as the input for the rule, system will not recognize it and it will fall in default condition with is_valid = FALSE.