> #### 5.5.3 Define Subprocess Node attributes

> Note: The dialogs displayed in this section are for Sub-process nodes. Data is mapped using the same procedure on Chained Process and Remote Sub-process nodes being that they are actually subprocesses in terms of functionality, so these same data mapping instructions can be used. Be careful when designing process definitions that have recursive subprocesses. Check all process definitions involved and make sure that there are no infinite recursions.

> Creating sub processes at design time is similar to creating them at run time, as described in the previous chapter. The main differences are that:

> 1. Design-time sub processes are created through the use of a Subprocess Activity Node.

> 2. Sub processes are used to break complex tasks into a hierarchy of easier-to-handle units.

> 3. Sub processes are most appropriate for seamlessly linking the work of different departments with different processes for the purpose of trading information and coordinating collaborative tasks.

> ###### To access a sub process:

> 1. Display the process definition.

> 2. Right-click the Subprocess Node () and select the User Defined Attributes tab to review the data you may need to link between the processes. (Do this for both the parent process definition and the sub process definition.)

> 3. Select the Data Mapping tab.

> Figure 44: Create Subprocess dialog

> 4. [On Remote Subprocess Node] Copy in or enter the URL of the process definition that you want to use to create your remote sub process.

> 5. [On Remote Subprocess Node] Specify either SWAP or ASAP as the transfer protocol.

> 6. Click the Select Sub-Plan button, and on the Select Sub-Plan dialog that appears, click the Get Process definitions button. Select a process definition name, and click OK.

> Figure 45: Select Sub-Plan dialog

> Note that the ID of the selected process definition, which is displayed in the Current Sub-Plan field, is read only. You cannot modify it manually.

> 7. The SubProcess Node Properties Dialog, Data Mapping pane reappears. Use the New Data Mapping panel to map user-defined process attributes between the current process definition and the process definition you have chosen. Using the three drop-down lists, select a data type and user-defined process attributes for each process definition. Click Add Mapping.

> Note that the list of data types in the Mapping Type drop-down list is taken from the parent process definition, rather than the sub process definition. The other two drop-down lists display all user-defined process attributes of the selected data type in both the parent process definition and the sub process definition.

> Only when both parent process definition and the sub process definition contain user-defined process attributes of the selected data type is the Add Mapping button enabled.

> 8. On the Existing Data Mapping panel, select a data mapping item, and click the check boxes to indicate whether the data value passes from the parent process to the sub process ("Input") or from the sub process to the parent process ("Output"). Note that each mapped pair of user-defined process attributes may be set individually.

> 9. On the Existing Data Mapping panel, you may also select a data mapping item, and click Delete Mapping to remove it.

> 10. You may also use the Script tab to add Prologue or Epilogue Scripts and the Action Set tab to add Prologue or Epilogue Java Actions to the Subprocess Node.

> 11. Click OK when finished.

> Note: Sub process nodes do not require user intervention after the sub process is complete before running an Epilogue Script and activating the outgoing arrows.

Business Process Manager Help-Fujitsu Computer Systems Corporation Interstage Website Voice: (888) 248-9273 Interstage BPM Information