Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 3 Processes : Subprocesses

Subprocesses
Business processes are often very complex and it is difficult to diagram the complete process in one process definition. You can create several smaller process definitions instead of one monolithic process definition. You can then call each process definition from another process definition, when necessary. When you call a process definition, the called process is known as a subprocess. Using subprocesses helps to make more readable process diagrams and you can reuse subprocesses across many process definitions.
To create and call a subprocess, follow this procedure:
1.
Create a process definition for the subprocess. See Developing Process Definitions for more information about creating process definitions.
2.
3.
4.
The Call Process activity allows you to map input values into the called process, and optionally allows you to spawn the subprocess into another process instance.
You can call specific processes, or you can dynamically determine which process to call when the process instance executes. See TIBCO ActiveMatrix BusinessWorks Palette Reference for more information about dynamically calling subprocesses.
Normally, a subprocess executes in the same process instance as the calling process, and the output of the subprocess is available to all subsequent activities in the process. If you select the checkbox in the Spawn field of the configuration tab of the Call Process activity, the subprocess is spawned into a new process instance. When a subprocess spawns a new process instance, the parent process cannot access the called process’ output.
Figure 16 illustrates a main process calling a subprocess.
Figure 16 A main process calling a subprocess

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved