Application Rules

The Application or API Rule is the interface between the process engine and the service, including any parameter to be passed.

Based on their usage the application riles are categorized into three types:
  • Execution Rule: These are Business Logic executed as Task by an Activity.
  • Decision Rule: This rule returns a Boolean value “True/False”, used in decision making during split or branching of transition.
  • Selection Rule: This rule fetches some value, useful to get value dynamically from a table or other source.
To create an application rule, click Add in the Application tab, to view the Application Rules menu. Currently, the available application rules are:
  • Attribute Expression Application Rule
  • Advanced Attribute Expression Application Rule

Note:

The following Application Rules displayed in the menu are not yet functional and will be available in future releases:
  • Stored Procedure Application Rule
  • Function Application Rule
  • JSON Read From DB Application Rule
  • JSON Write To DB Application Rule

Attribute Expression Application Rule

This Application Rule uses attribute expressions in your Process Flow. Enter the following details to create a new attribute expression application rule:

  • Name - Enter a unique name for the Application Rule.
  • Rule Type - Select the rule type as DecisionRule. This Rule Execution type supports only the DecisionRule type.
  • Execution Type - Select the Application Execution Type as Attribute Expression.
  • Attribute - Select the attribute for which you want to define the application rule, from the drop-down list. The list displays the attributes configured for the selected service and component. For more information, see Configuring Application Object Model (AOM) .

    Click Add to add values to the selected attributes. A row is added in the Attribute Values pane. Click the Value column to select the values for the attribute from the drop-down. You can select one or more values. You can select multiple attributes and click Add to assign values to those attributes.

    Click Delete to remove a row.

Advanced Attribute Expression Application Rule

This is an advanced version of the Attribute Expression Application Rule with additional logical conditions and assignment operators. The expression can be dynamically built and will return True or False values after evaluation. This is used as a DecisionRule in transitions. You can define this application rule with multiple conditions and nested groups.

  • Rule Name - Enter a unique name for the Application Rule.
  • AND or OR - Select the logical operator to be used for the conditions in a group.
  • Add Condition - When you click Add Condition, a new row gets added. To define a condition, select the attribute, the operator, and the value from the drop-down lists. Multiple values can be selected for each attribute. Click Remove Condition to delete an already added condition.
    • Attribute- The drop-down list displays the attributes configured for the selected service and component. For more information, see Configuring Application Object Model (AOM).
    • Operator- Available options are in,=,<>,<,<=,>,>=.
    • Value- Displays the values configured for the selected attributes. Select the required value.
    • Attribute - Select the attribute for which you want to define the application rule, from the drop-down list. The list displays the attributes configured for the selected service and component. For more information, see Configuring Application Object Model (AOM) .

      Click Add to add values to the selected attributes. A row is added in the Attribute Values pane. Click the Value column to select the values for the attribute from the drop-down. You can select one or more values. You can select multiple attributes and click Add to assign values to those attributes.

      Click Delete to remove a row.

  • Add Group - Click Add Group to include nested conditions. For each group, select the required logical operator as AND or OR.

    Click Remove Group to delete a group of conditions.