Accessing user-defined properties from a JavaCompute node

Customize a JavaCompute node to access properties that you have associated with the message flow in which the node is included.

To access these properties from a JavaCompute node, use the getUserDefinedAttribute(name) method, where name is the name of the property that you are accessing. The type of the object that is returned depends on the type of the property that you are accessing. The object has one of a set of types:
  • MbDate
  • MbTime
  • MbTimestamp
  • Boolean
  • byte[]
  • String
  • Integer 32-bit values
  • Long 64-bit values
  • Double
  • BigDecimal
  • BitSet
Start of changeYou cannot access user-defined properties in the constructor. To access them at initialization time, implement the following method and use it to access the user-defined properties.
public void onInitialize() throws MbException
{
   // access the user-defined properties here
}
End of change
Related concepts
User-defined properties
Related reference
JavaCompute node
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2009Copyright IBM Corporation 1999, 2009.
Last updated : 2009-01-07 15:20:37

ac30220_