Define Rule Actions

Model Rule Actions in the Rule Actions section

Step

Action

See also

1

In the Rule Actions section, when a specific value of a Rule Condition calls an operation (such as post error) or decision attribute (such as Eligible - Yes/No), you assign the operation or attribute as an action.

From a business term Class element in the Project Browser, drag and drop the required attribute or operation onto the Rule Actions field.

The Rule Actions field enables you to use intellisense to display a list of possible entries for the field; press ( Ctrl+Spacebar )  in the field to display the list of entries.

 

 

2

For an attribute, double-click on the Allowable Values/Parameters field; the Edit Allowable Values dialog displays.

Type the range of values in the text box (such as Yes, No; or Accept, Reject), click on the Save button and close the dialog; select the appropriate response in the Result column fields.

If the dropped action variable is of type enum, the Allowable Values/Parameters fields are automatically set with the enum literals.

 

 

3

For an operation, a checkbox displays in each of the Result column fields; to call the operation, select the checkbox in the appropriate column.
 
To pass parameters to the operation, double-click on the Allowable Values/Parameters field; the Edit Parameters dialog displays.

Select the parameters and type the values into the Value text box; click on the Save button and close the dialog.

You can add an operation as a Rule Action more than once, to allow calling the operation with different sets of parameters.

 

 

4

Click on the Save button in the Rule Composer toolbar to save the values.

Alternatively, you can right-click on an Allowable Values/Parameters field to display a context menu with two options:

If the Rule Action is an attribute, the Edit Allowable Values option is enabled and this displays the Edit Allowable Values dialog
If the Rule Action is an operation, the Edit Parameters option is enabled and this displays the Edit Parameters dialog

 

To add another Rule Action, right-click on the No column and select the Add Row context menu option; an empty row is added to the table.

To remove a Rule Action from the table, right-click on the appropriate No field and select the Delete Row context menu option; this does not affect the original attribute or operation in the model.