You can change the scope of a subprocess that you call from a flow. By running a subprocess in the context of a specific class or case, you can use properties, rules, and other functionality in your application that you cannot access from the parent flow.
In the Explorer panel, click Cases, and then click the case type that you want to open.
On the Workflow tab, click Life cycle.
Click the process that contains the subprocess step.
Click Open process.
On the Diagram tab of the Flow form, double-click the Subprocess shape to open the property panel.
Optional: To allow the parent flow to continue processing without waiting for this subprocess to return, select the Spinoff flow check box.
Choose a context for 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.
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.