IBM Support

Printing Boolean attribute

Technote (FAQ)


How to print a Boolean attribute?


A limitation in the Business Action Language prevents Boolean attributes from being displayed in the list of choices for the 'print' construct when editing a rule.


To print a Boolean attribute or variable:

1. Create a BOM class MyClass.
2. Add a static method : convertBoolean() with a return type java.lang.String.
3. Add an argument b of type Boolean.
Use the following BOM-to-XOM mapping for this method:
return "" + b;
4. Verbalize the method, for instance convertBoolean({0})
5. Write a rule action:
then print convertBoolean(myBoolean);

Cross reference information
Segment Product Component Platform Version Edition
Business Integration IBM Operational Decision Manager Modules:Rule Studio Platform Independent 7.5 Enterprise, Standard
Business Integration WebSphere ILOG Rule Team Server General Platform Independent 7.1, 7.0 Enterprise, Standard

Document information

More support for: WebSphere ILOG JRules

Software version: 7.1

Operating system(s): Platform Independent

Reference #: 1591704

Modified date: 2012-11-14