Skip to main content

Printing Boolean attribute


Technote (FAQ)


Question

How to print a Boolean attribute?

Cause

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.

Answer

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

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

WebSphere ILOG JRules

Modules:Builder


Software version:
7.0, 7.1


Operating system(s):
Platform Independent


Reference #:
1591704


Modified date:
2012-11-14

Translate my page

Content navigation