How to Use Dynamic Sub-Processes

This tutorial shows you how to use dynamic sub-processes within a business process.

There can be occasions when a business process needs to call on one from a number of routines, but it is not known at design time which particular one of them will be called on any given occasion. This can be handled by creating a number of sub-processes. The exact sub-process to be run is chosen dynamically at runtime, depending on the process data that apply at that time. In TIBCO Business Studio, this is accomplished by using a common process interface for the set of sub-processes.

After you complete this tutorial, you should be able to use process interfaces to call sub-processes within a business process.

In this process:

  • A nurse enters basic information about the patient, such as their name and address.
  • On a second form the nurse enters the symptom that the patient reports, and selects whether to send the for a blood test, an X-ray, or both.
  • As a result of this decision, a work item is sent to the required departments (for example, the X-ray department) and someone in that department books an appointment. An email is sent to the patient with the appointment details.
  • Finally, a form displays to a supervisor a summary of the patient’s admission information along with any new booking information that has been entered.

Before You Begin

Before you start this tutorial, you can become familiar with TIBCO Business Studio by completing the initial Welcome Users tutorials.