Task 5: Using the interaction policy
You add a storm alert by updating the data and decision models. When you run the decision
model to test the storm alert, it produces a greeting and a warning to stay home.
About this task
In this task, you...
- Add a boolean attribute to the composite type in the data model.
- Create a rule to use the new attribute in the decision model.
- Set the order of the rules to apply the new rule first.
- Run the decision model to check your changes.
Step 1: Adding an attribute
About this task
In this step, you add an attribute to the composite type in the data model.
Procedure
- Click the Navigation history icon in the upper right bar, and then click Data to return to the data model.
- In the left panel, select weather.
- In the Attributes section, click the Add button to create an attribute.
- Change the name of the attribute to storm alert, and set its type to boolean.
Step 2: Modifying the decision logic
About this task
In this step, you add a business rule to use the storm alert attribute in the Weather advice node, and then set the sequence for running the rules in the node.
Rules are run in a specific order. By default, they are sequentially run in the order in which they are listed in a decision node. However, you can supersede the default behavior by setting the order for running the rules (see Choosing an interaction policy).
Procedure
Step 3: Running the model
About this task
In this step, you run the model to check your changes.