Examples of automatic exception handling
When you enable automatic exception handling in conditions, the engine handles specific subclasses are handled by the rule engine so that rule processing can continue after exceptions are thrown.
With automatic exception handling in conditions, unknown values for Boolean expressions are resolved by using the following three-valued logic that applies for all combinations of Boolean expressions that can result in an exception:

Simple rule condition
In the following example, if the status of the borrower is unknown, no rule action is executed.
if
the status of 'the borrower' starts with "duplicate"
then
reject 'the loan' ;
add "duplicate detected" to the messages of 'the loan' ;
else
add "no duplicate found" to the messages of 'the loan' ;
Rule condition that uses the OR operator
In the following example, if the status of the borrower is unknown and the comment of the loan contains the word duplicate, then the loan is rejected and a duplicate detected message is sent.
if
the status of 'the borrower' starts with "Duplicate" or the comment of 'the loan' contains "duplicate"
then
reject 'the loan' ;
add "duplicate detected" to the messages of 'the loan' ;
else
add "no duplicate found" to the messages of 'the loan' ;
However, if the status of the borrower is unknown and the comment is unknown, then no rule action is taken. The loan is not rejected and the message no duplicate found is not added to the loan.
Rule condition that uses the AND operator
In the following example, if the status of the borrower is unknown and the comment in the loan contains the word duplicate, neither the then nor the else actions are taken. In other words, the loan is not rejected and the message no duplicate found is not added to the message of the loan.
if
the status of 'the borrower' starts with "duplicate" and the comment of 'the loan' contains "duplicate"
then
reject 'the loan' ;
add "duplicate detected" to the messages of 'the loan' ;
else
add "no duplicate found" to the messages of 'the loan' ;
For the loan to be rejected, both expressions must be true.
If there is no ... then ...
If the collection of past borrowers contains a borrower for whom the where clause is unknown, then no rule action is taken.
If there is no borrower in the past borrowers of 'the loan' where the name of this borrower is the name of 'the borrower',
then
add "no duplicate found" to the message of 'the loan'
If there is at least one ... then ...
If the collection of past borrowers contains a borrower for whom the where clause is true, then the rule action is taken. If the collection of past borrowers contains borrowers for whom the where clause is either false or unknown, then the rule action is not taken:
If there is at least one borrower in the past borrowers of 'the loan' where the name of this borrower is the name of 'the borrower',
then
reject 'the loan' ;
add "duplicate detected" to the message of 'the loan'
Rule condition that use the NOT operator
In the following example, if the status is unknown and the comment does not contain duplicate, the then action is taken and no duplicate found.
if it is not true that
(the status of 'the borrower' starts with "duplicate" and the comment of 'the loan' contains "duplicate")
then
add "no duplicate found" to the messages of 'the loan' ;
else
reject 'the loan' ;
add "duplicate detected" to the messages of 'the loan' ;
If the status is unknown and the comment contains duplicate, no rule action is executed.
Decision Table
In the following example, the otherwise row to a condition column is selected when all the other conditions in the column are false. Alternatively, if one of the other conditions is unknown, then the otherwise row is not selected:

Rule variable
If the rule variable 'statusIsNew' is unknown, the rule engine stops the evaluation of the expressions. The condition is considered unknown and no rule action is taken.
definitions
set 'statusIsNew' to the status of 'the borrower' starts with “New";
if it is not true that 'statusIsNew' and the comment of 'the loan' contains "similar"
then
reject 'the loan' ;
add "duplicate detected" to the messages of 'the loan' ;
else
add "no duplicate found" to the messages of 'the loan' ;
Collection of objects
If there is an unknown value in the test that the collection object must fulfill, then this object is not added to the collection:
definitions
set 'duplicateBorrowers' to all borrowers where the status of each borrower starts with "duplicate" ;
Expressions in business language that are not supported
In the following example, if the where clause is true for three borrowers and unknown for one borrower, then the rule engine considers that the condition is true because the borrower for whom the where clause is unknown is not counted. The then action is taken:
If there are at most 3 borrowers in the past borrowers of 'the loan' where the name of each borrower is the name of 'the borrower',
then
add “3 or less similar borrowers found" to the messages of 'the loan' ;
else
reject ‘the loan’;
add “more than 3 similar borrowers found" to the messages of 'the loan' ;
In the following example, if the where clause is true for one borrower and unknown for two borrowers, then the rule engine considers that the rule condition is false because the two borrowers for whom the where clause is unknown are not counted. The else action is taken:
if there are at least 3 borrowers in the past borrowers of 'the loan' where the name of each borrower is the name of 'the borrower',
then
reject ‘the loan’;
add “3 or more similar borrowers found" to the messages of 'the loan' ;
else
add “less than 3 similar borrowers found" to the messages of 'the loan' ;