Before you begin: Define a circumstance template that stores properties and at
least two circumstance definitions that store values to evaluate against the template.
For more information, see Creating a circumstance template and
Creating a circumstance definition.
Provide relevant processing in scenarios when multiple conditions evaluate
to true, to ensure that users of your application interact with the intended data and
application behavior. By defining the priority of circumstance definitions, you
determine how your application behaves when more than one definition meets specified
Consider a situation in which a circumstance template includes a
property that holds a loan amount. Two circumstance definitions correspond with the
template; one definition that evaluates the property against values greater than 4,000, and
a second definition that evaluates a property against values greater than 7,000. A customer
creates a loan request for 10,000. Because both circumstance definitions evaluate to true,
you can select which definition you want your application to use.
- In the navigation pane of Dev Studio, click Records.
- Expand the Technical category and
click Circumstance Template.
- In the list of circumstance templates instances, click the template that you
want to open.
- Click the Definitions tab.Result: The All Definitions section displays all
circumstance definitions that correspond to the open circumstance
- In the Priority Definitions section, in the field in row
1, enter the circumstance definition that you want your
application to run first.
- To add more circumstance definitions, click Add a row,
and then in the row that appears, enter the definition that you want your
application to run next.
Tip: You can also drag a field to a different position in the list
to change its run-time priority.
- To check the correctness of your circumstance definitions, on the toolbar,
click Show Conflicts.Result: A read-only decision table opens in a separate window that displays all
the definition values for all the circumstance definition rules in the specified
order. A warning icon appears next to the rows of the table that are
unreachable. A warning message also appears when you attempt to save a form that
contains conflicts. Even though the tables might not have any conflicts
individually, conflicts might generate when the system assembles the definitions
as a single table at run time.
- Click Save.