| Reference > Rule Languages > Business Action Language > BAL Constructs > the name of this rule |
the name of this rule |
PREVIOUS NEXT |
Returns the name of the currently executed rule in the then part of a business rule.
the name of this rule
This construct displays the name of the current rule as a string. It can can be useful as a means of providing an audit trail. Each time a rule is fired, you can log a message that this rule was fired.
The variable is of type String and contains the name of this rule. It is only available in the action part of the rule.
The following action would return the name of the executed rule, Retired_Customer_Policy for example.
if
the age of the customer is greater than 65
then
print the message "A 5% discount has been applied to policy: " + the name of this rule;
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |