Including snippets in expressions within rules

In expressions within rules, you can include snippets from the Snippet view in the Eclipse Workbench.

First, open the Eclipse Workbench, if it is not already open. Also, open the Rule Builder perspective.
The Snippet view is shown in the Rule Builder perspective. Snippets are organized into categories based on their function.

To include a snippet from the Snippet view, take the following steps:

  1. Click a snippet category to see the names of the snippets in the category.
  2. Click the snippet that you want to include in an expression.
  3. Drag the snippet into the respective Expression field. The code is placed at the position of the cursor in the Expression field. If the code requires input from the rule writer, such as specific message text or variable values, you are prompted to provide that input before the code is included in the expression.
Proceed to Validating a rule set.