Using Process and Module Properties
This sample demonstrates the use of process and module properties.
- Procedure
- In the samples directory, select and double-click tibco_bw_sample_core_config_processandmoduleproperties.zip. For more information, see Accessing Samples.
- In Project Explorer, expand the tibco_bw_sample_core_config_processandmoduleproperties project.
- Click .
- At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the checkbox next to tibco_bw_sample_core_config_processandmoduleproperties_application.
- 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.
- Click the
Terminate
icon to stop the process.
Result
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