Accessing Module Properties from Java Global Instance

You can access module properties from Java Global Instance so that at the time of deployment, these properties can be configured.

To access the ActiveMatrix BusinessWorks 6.x Module Properties in a user-defined Java code referenced in Java Global Instance, follow these steps:

Procedure

  1. In the ActiveMatrix BusinessWorks 6.x module, specify a dependency on the package "com.tibco.bw.palette.shared.java" using Import-Package.
    1. Double-click Dependencies located under ActiveMatrix BusinessWorks 6.x Module > Module Descriptors. This opens BW Manifest Editor.
    2. In the Imported Packages section, click the Add tab to add the dependency on the com.tibco.bw.palette.shared.java package.
  2. Add the @ModuleProperties annotation to the method that accepts only one parameter of type java.lang.HashMap.
    Through this HashMap you can access the name or value pair of ActiveMatrix BusinessWorks 6.x module properties.