Using Process and Module Properties

This sample demonstrates the use of process and module properties.

Procedure

  1. In the samples directory, select core > config > BasicPropertyConfiguration and double-click tibco_bw_sample_core_config_processandmoduleproperties.zip. For more information, see Accessing Samples.
  2. In Project Explorer, expand the tibco_bw_sample_core_config_processandmoduleproperties project.
  3. Set the default ApplicationProfile to match the OS you are running on. For more information, see Setting the Default Application Profile.
  4. Click Run > Debug Configurations.
  5. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  6. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the check box next to tibco_bw_sample_core_config_processandmoduleproperties_application.
  7. Click Debug. This runs the sample in Debug mode.
    The WriteFileMProp activity writes to the file name that is defined in the MP_FileName1 Module Property. The WriteFilePProp activity writes to the file name that is defined in the PP_FileName2 Process Property. By default, this value is set to C:\tmp\BasicPropertyConfiguration\fileProcessPropDefault.log.
  8. Click the Terminate icon to stop the process.

Result

The fileModulePropDefault.log and fileProcessPropDefault.log files are written to the c:\tmp\BasicPropertyConfiguration directory. The console prints a message similar to the following:

INFO [bwThread:In-Memory STWorkProcessor-1] c.t.b.p.g.L.t.b.s.c.c.b.p.Log - -->Completed WriteToFileProcessA Job: bw0a100