K2 BLACKPEARL PRODUCT DOCUMENTATION: USER GUIDE
Destination Rule - Creating Multiple Expressions

Destination Set Rule - Creating Multiple Expressions

Multiple expressions implies that the Destination Set Rule would evaluate more than one expression before evaluating to true. Creating multiple rules also allows for more sophisticated and complex logic.

To create multiple Destination Rule expressions, at least one expression must be in place. To add the new rule, click Add. When one rule already exists, the next rule includes a new operator field called the Boolean Operator. When setting the Boolean Operator, the result of the 1st rule is operated based on the outcome of the 2nd, or 3rd or n, etc rule.

The Boolean Operator

 The Boolean Operator evaluates the outcome of the expressions for the rule. A simplified formula below displays the outcome of a Boolean operator when two rules are listed in the Destination Rule dialog. The Boolean Truth tables are provided in the see also links under Rule Operators.

Multiple Expressions
When configuring these operators, care must be taken to ensure that when the process is deployed it is possible for the Destination Rule to resolve to true. It is possible for the Destination Rule logic to be configured in such a way that it evaluates correctly, but never resolves to true; i.e. although never in error, the Destination Rule never resolves to true and the Rule never executes.

To illustrate the operators evaluation process the image below shows two expressions and two possible scenarios. In the first the Destination Rule evaluates to true and in the second false according to the example used below

2 Expressions with AND operator

For the rule to execute, the expressions must resolve to TRUE. Where the expressions do not resolve to true, the rule will not execute.

Parameter 1

Operator

Parameter 2

Result

ExpenseClaimAmount > 3000

AND

ExpenseType = FoodAndBeverages

True

ExpenseClaimAmount < 3000

AND

ExpenseType = FoodAndBeverages

False

See Also

 

 


K2 blackpearl Help 4.6.11 (4.12060.1731.0)