| ILOG JRules User Guide > Creating Rule Projects > Concepts > Vocabulary > Phrase Templates > Placeholders |
Placeholders |
PREVIOUS NEXT |
Vocabulary phrase templates contain placeholders, which represent gaps in phrases that can be filled in automatically or manually when editing rules. Placeholders are identified by curly brackets {}.
There are three types of placeholders:
{this} placeholders that need to be filled in manually when editing rules.
Subject placeholders appear in navigation phrases. The subject is a business term that you can edit in the BOM Editor. The subject corresponds to the return type a member.
The subject placeholder is optional. When used in rules, the subject placeholder automatically takes the appropriate number and article for the context.
In the placeholder text, the subject needs to be specified using the singular form, without article.
The {this} placeholder represents the declaring class of a member. You cannot use this placeholder in the verbalization of static members.
For example, for an attribute lastName of type String in class Customer, you can specify the following phrase template:
If there is no ambiguity, you can choose to write simplified phrase templates by not using the {this} placeholder. See Simplified Phrase Templates.
Argument placeholders represent the arguments of methods, and are represented by the index of the argument.
For example, in the action phrase in {this}, display the message {0} , which is the verbalization of the method Session.displayMessage(String), {0} is the argument placeholder for a String.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |