You can use the Subprocess shape in a flow to call another flow in your application. By using subprocesses, you can compartmentalize functionality and simplify the presentation of a process in a case type.
Tip: To develop your flow more quickly, use Case Designer to add a subprocess to a stage in the life cycle of a case. Return to Process Modeler only if you need to configure advanced options.
For more information, see: Calling a subprocess.
To call a subprocess:
Double-click the Subprocess shape to open the property panel.
In the Flow name field, press the Down Arrow key and select the name of a flow to run.
If the flow supports input parameters, additional fields are displayed for you to define name-value pairs.
Optional: To allow the parent flow to continue processing without waiting for the subprocess to return, select the Spinoff flow check box.
Configure the context of the subprocess.
In the Define flow list, select On current page.
In the Define flow list, select On specific work item.
In the Work property field, press the Down Arrow key, and select a property that stores the key value of the case on which your subprocess works.
In the Class field, press the Down Arrow key and select the class of the case.
Optional: To define the clipboard page that stores case data, enter a value in the Page name field.
If the case does not already have a page and you do not provide a page name, you application creates a page named pyNextObj
, pyNextObj_1
, and so on.
In the Define flow list, select On embedded page.
In the Page property field, press the Down Arrow key and select a property that stores the embedded page.
This property must use a mode of Page
, Page List
, or Page Group
.
In the Class field, press the Down Arrow key and select the class of the embedded page.
Tip: To use a class that is not known at design time, enter a property reference or expression in the Class field.
Click Submit to close the property panel.
Click Save.
You can test the functionality of the Subprocess shape by connecting it to other shapes and running your flow.