Model a Text Rule for Execute Operations

When you do not assign a result vocabulary to a text rule, you can perform execute operations on existing input/output parameters or decision variables. You can update or append values to these. You can also add multiple execute operations in a single text rule.

Procedure

  1. To open the Create Rule wizard, choose Add Rule.
  2. Under Rule Details, choose the Rule Type as Text Rule, provide the Rule Name and Rule Description.
  3. Choose Next Step.

    The Configure Results screen opens.

  4. Choose No Result (use execute operations) from the Result Vocabulary dropdown and then choose Next Step.
  5. In the Review screen, review your text rule details and choose Create.

    You have created the rule. You can now configure the rule.

  6. In the If field, provide the rule condition.
  7. Press CTRL + SPACE in the Then field of your text rule to view the list of operations and loop functions that can be performed on any vocabulary of the project.
  8. Choose the Append or Update operation or loop function to be performed on the vocabulary, and then provide the required input for the operation or function according to the syntax.

    If you want to configure loop functions on list type parameters, do the following:

    1. Choose Loop Functions.

    2. In the Configure Loop Functions screen, choose FOREACHITEM from the Function dropdown.

    3. From the Vocabulary dropdown, choose an entry of type Table or a rule that returns a vocabulary of type Table.

    4. From the Current Item dropdown, select the current row of the list for which you want to use the loop function.

    5. (Optional) In the Where field, provide a filter condition for retrieving the values from the Vocabulary.

    6. Press CTRL + SPACE in the textbox to configure the execute operations to be executed in a loop and choose Apply.

      You can view the loop function syntax in the Function Label field.

  9. (Optional) Choose Add Else If to add multiple if-then conditions.