Controlling the order of circumstance definitions
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 conditions.
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 then click Circumstance Template.
- In the list of circumstance templates instances, click the template that you want to open.
- Click the Definitions tab.
- 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.
- To check the correctness of your circumstance definitions, on the toolbar, click Show Conflicts.
- Click Save.
Previous topic Date combinations and business requirements Next topic Redirected rule