K2 BLACKPEARL PRODUCT DOCUMENTATION: USER GUIDE
Creating Multiple Expressions

Line Rule - Creating Multiple Expressions

Multiple expressions implies that the Line 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 line 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 on 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 Line Rule dialog. The Boolean Truth tables are provided in the see also links under Line 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 Line Rule to resolve to true. It is possible for the Line 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 Line Rule never resolves to true and the Line Rule never executes.

To illustrate the operators evaluation process the image below shows two expressions and two possible scenarios. In the first the Line 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

Outcome is = Approved

AND

Status = Done

True

Outcome is <> Approved

AND

Status = Done

False

See Also

 

 


K2 blackpearl Help 4.6.10 (4.12060.1690.0)