Accessing Module Properties from Java Invoke Activity

You can access the ActiveMatrix BusinessWorks 6 module properties and Java system properties from the user-defined code invoked from the Java Invoke activity and Java Event Source.

Procedure

  1. Under the ActiveMatrix BusinessWorks 6 module, click Module Descriptors , and then double-click Dependencies.
    This opens BW Manifest Editor.
  2. In the Imported Packages section, click Add.
    The Package Selection dialog opens.
  3. Select the com.tibco.bw.palette.shared.java and com.tibco.bw.runtime package and click OK.
  4. Add the @BWActivityContext annotation to the method which accepts only one parameter of type com.tibco.bw.runtime.ActivityContext.
    The module property can be accessed from ActivityContext class using the methods "registerModuleProperty" and "getModuleProperty".

Accessing Module Properties in User-Defined Java Code Referenced in JavaProcessStarter

Retrieve EventSourceContext from the getEventSourceContext() method of abstract Java class "JavaProcessStarter". The module property can be accessed from EventSourceContext class using the methods "registerModuleProperty" and "getModuleProperty".