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

Procedure

  1. In the module, specify a dependency on the package "com_tibco_bw_palette_shared_java" using Import-Package.
    1. Double-click Dependencies located under 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 module properties.