Changing the context of a subprocess
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 navigation pane of App Studio, click Case types, 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.
- To work on the current case, from the Define flow list, select On current page.
- To work on a specific case, from the Define flow list, select On specific work item. Complete the Work property, Class , and Page name fields.
- To work on an embedded page, from the Define flow list, select On embedded page. Complete the Page property and Class field names.
- Click Submit to close the property panel.
- Click Save.
Previous topic Subprocesses Next topic Calling one process from another process