Professional Documents
Culture Documents
4
Decision Rules
• Map Values
– An instance of class Rule-Obj-MapValue
– There are 2 types of Map values –One input map value and Two input map value
– It can create a table of number, text, or date ranges that converts one or two
input values, such as latitude and longitude numbers, into a calculated result
value, such as a city name. Map value rules greatly simplify decisions based on
ranges of one or two inputs.
• Map Values …
• When conditions
– Evaluates a Boolean logical statement involving values of properties, to return a value
of true or false
– When creating When rules use Quick Create option if the condition is really simple.
– Use Conditions tab to create logical statements with AND & OR (At a given when
condition you can use only ANDs or only ORs in conditions tab)
– Are referenced from :
» Fork shape in flows
» In activities as pre condition or transitions
» In UI related rules (Harness, Sections) as Visible when
» In flow actions to conditionally display flow actions at run time (used in Security
tab of the flow action)
– If Advanced tab is used complex conditions can be built (Using AND, OR, NOT).
– Alternatively, you may use the expression builder to create your own expression Note:
When Conditions must evaluate to True or False
• Compare Different Decision Rule Types and identify when to use them
• Use Decision Tables when
– The tests are based on the same set of properties
– Data is easy to see in tabular format
– The table format is preferred by business analyst and can be
exported/edited in Excel
• Use Decision Trees when
– The test tend to be for different properties
– Very flexible. Good for complex and nested conditions
– IF THEN ELSE type of logic is often more familiar for IT
• Use Map Values
– The test is based on one or two inputs ex: Locate cities based on longitude
and latitude.
• Use When conditions
– Required output is Boolean
????