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 TIBCO BusinessWorks™ Container Edition Module Properties in a user-defined Java code referenced in Java Global Instance, follow these steps:

Procedure

  1. In the TIBCO BusinessWorks™ Container Edition module, specify a dependency on the package "com.tibco.bw.palette.shared.java" using Import-Package.
    1. Double-click Dependencies located under BusinessWorks Container Edition 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 BusinessWorks Container Edition module properties.