Advanced Rule Language (ARL)

For each Business Action Language (BAL) expression that you create for BOM-to-XOM mapping in the decision engine, you can review its equivalent Advanced Rule Language (ARL) expression. ARL is a read-only rule language that is similar in syntax to Java 7.

If you are familiar with Java 7, you can review how your BAL expressions are interpreted by the decision engine by reviewing the content in the ARL tab in Rule Designer.

Next to the Intellirule tab in Rule Designer, click the ARL tab to access the ARL interpretation of your expressions.
BAL and ARL are equivalent in meaning, as you can see in the following two examples. In the first rule condition that is written in BAL, the credit score of a borrower is examined to check whether the borrower has a credit score less than 200:
if
   the credit score of 'the borrower' is less than 200
then
   add "Credit score below 200" to the messages of 'the loan' ;
   reject 'the loan';
The decision engine interprets the previous expression and produces its equivalent in ARL, readable from the ARL tab in Rule Designer. The following ARL expression describes the exact same rule condition as its counterpart in BAL:
rule `eligibility.minimum credit score` {
   ilog.rules.business_name = "minimum credit score"
   ilog.rules.dt = ""
   ilog.rules.package_name = "eligibility"
   status = "new"
when {
   miniloan.Borrower() from $EngineData.this.borrower;
   evaluate ( $EngineData.this.borrower.creditScore < 200);
   }
then {
   $EngineData.this.loan.addToMessages("Credit score below 200");
   $EngineData.this.loan.reject();
   }
}