Working with Complex Expressions

Use

You can add simple and complex expressions:

  • In definitions

  • In the conditions and assign action type in an if-then rule

  • As actions values in a decision table

  • As action values in a rule script

Procedure

Locate the ruleset and double-click the ruleset node.

For more information, see Locating the Ruleset

or

Locate the flow ruleset and double-click the flow ruleset node.

For more information, see Locating the Flow Ruleset

Adding a Complex Expression in a Definition

  • In the ruleset or flow ruleset editor, choose the Definitions tab.

  • In the Definition editor, in the Fixed Definitions or Variable Definitions section, choose the RHS value and in the drop down menu choose <Add a new expression>

Adding a Compplex Expression in a Decision Table

  1. In the ruleset or flow ruleset editor, choose the Decision Tables tab.

  2. In the decision table editor, in the action header, select a cell and press F2 .

  3. In the menu that appears choose <Add a new expression> .

Adding a Complex Expression in an If-Then Rule

  1. In the ruleset or flow ruleset editor, choose the Rules tab.

  2. In the rule editor, in the If section, choose add a new Condition.

  3. In the default condition that appears, choose Operation.isSuccessful() and in the drop down menu that appears choose a definition or an alias.

  4. Choose the alias or definition and in the drop down menu choose <Add a new expression> .

  5. In the rule editor, in the Then section, choose the RHS value in the Assign action type syntax and choose <Add a new expression> in the drop down menu.

Adding a Complex Expression in a Rule Script

  1. In the flow ruleset editor, choose the Rule Scripts tab.

  2. In the rule script editor, choose add a new Action

  3. Choose the RHS value and choose <Add a new expression> in the drop down menu.

Modifying Dynamic and Static Values in Complex Expressions

  1. After you add a complex expression, click each of the values in the expression and in the drop down menu choose a dynamic value (Definitions or aliases).

  2. To enter a static value, enter a value in the inline text box.

Modifying Mathematical Operators

Select the operator and choose the desired operator in the drop down menu.

Adding Brackets in Complex Expressions

After you add a complex expression, click values in the complex expression where you want to add brackets. There are options such as <Add open bracket> and <Add close bracket> in the drop down menu.

Deleting an Expression

Place the cursor before the value in the expression and choose Delete .