Invoking Subprocesses
In this sample, the MakeNoise process calls the Invoke subprocess multiple times which in turn calls another subprocess Log.
- Procedure
- In the samples directory, select and double-click tibco.bw.sample.core.soa.CallProcessAndInvoke. For more information, see Accessing Samples.
- In the Project Explorer, expand the tibco.bw.sample.core.soa.CallProcessAndInvoke project.
- Set the default application profile to match the OS you are running on. For more information, see Setting the Default Application Profile.
- Fully expand the Processes directory and double-click MakeNoise.bwp.
- 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.soa.CallProcessAndInvoke.
- Click
Debug.
This runs the sample in Debug mode.
- Click the
Terminate
icon to stop the process.
The output.log file is generated in the C:\tmp\CallProcessAndInvoke directory. This file contains output from MakeNoise process and Log sub process.
The Console shows the following response:
ECHO: 1:41:56 PMEcho
ECHO: 1:41:59 PM
Echo
ECHO: 1:42:02 PM
Echo
Understanding the Configuration
This is a hands-on and simple demonstration for the Design time experience with simple Invoke services. The MakeNoise process calls the Invoke process with a single operation and a simple string message. The Invoke process simply returns the Input as the Output.