Accessing Module Properties from Java Invoke Activity

You can access the TIBCO BusinessWorks™ Container Edition 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 TIBCO BusinessWorks™ Container Edition module, click Module Descriptors > Descriptors.
    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". Refer to API Reference for more details on how to use these methods.

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

Procedure

  • 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".