Invoking Subprocesses

In this sample, the MakeNoise process calls the Invoke subprocess multiple times which in turn calls another subprocess Log.

Note: If accessing the sample from the Welcome page of TIBCO Business Studio™ for BusinessWorks™, go directly to Step 3.

Procedure

  1. In the samples directory, select core > soa > CallProcessAndInvoke and double-click tibco.bw.sample.core.soa.CallProcessAndInvoke. For more information, see Accessing Samples.
  2. In the Project Explorer, expand the tibco.bw.sample.core.soa.CallProcessAndInvoke project.
  3. Set the default application profile to match the OS you are running on. For more information, see Setting the Default Application Profile.
  4. Fully expand the Processes directory and double-click MakeNoise.bwp.
  5. Click Run > Debug Configurations.
  6. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  7. 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.soa.CallProcessAndInvoke.
  8. Click Debug.
    This runs the sample in Debug mode.
  9. Click the Terminate icon to stop the process.

Result

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 PM

Echo

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.