Use a rule set template to define the implementation and
parameters for an if-then or action rule. This template can then be
used to create new instances of the same rule using different parameters.
About this task
You can create templates for both if-then and action rules
in the same way.
Business rules based on templates are dynamically
modifiable in the runtime environment. The parameters of the rule
can be modified within certain constraints. Base your rule on a template
if you want to give your business analyst the ability to modify the
parameters of a rule without involving the integration developer.
Procedure
- In the rule set editor, click either the Add
If-then template (
,) or Add
Action template (
) icon .
A new template appears as shown in this image (note that
the window is slightly different for the action template).
- In the Parameters row, create a new parameter as follows:
- Click the
icon. A new parameter will
appear.
- In the Type column, click Select Type,
and select an appropriate choice from the list.
- To add a restriction on how the parameter can be configured,
click None under the Constraint column.
A list showing the available choices will appear.
- To specify an upper and a lower limit for a numeric
parameter, click Range, and then use the choices
in the window to build your expression.
You can either
choose an existing template which will then prompt you for a value,
or you can compose it yourself by clicking the appropriate operators
and values in sequence.
- To specify a list of choices, click Enumeration,
and add items to the Enumeration Items table in the Constraint tab
in the properties view.
The Value is the actual setting,
and Presentation is how it is displayed in an actual rule.
Note: If you apply a constraint to a parameter, the runtime
user of a rule using this template will be able to modify the parameter
only in accordance with that constraint.
- In the Presentation row, write a sentence that will describe
the rule to another user.
To insert a parameter that the
user can make changes to, click the triangular icon to launch a menu,
and then choose a parameter from the list.
- Compose the condition as follows:
- In the If row, click Condition.
A pop-up window appears.
- Use the choices in the window to build your condition.
- Set the action as follows:
- In the Then row, click Action.
A pop-up window appears.
- Use the choices in the window to set the action.
Results
You have successfully created a template for an if-then or
an action rule. Now you are ready to create a rule based on it in
the rule set editor.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15