Running multiple instances of the same subprocess with a Split for Each shape
Speed up case resolution by creating multiple instances of one subprocess that users can work on simultaneously and that later rejoin the parent process. Consequently, you provide tools for users to work in parallel and remove the risk of blocking users during case processing.
In a sample scenario in which a case requires approval from multiple users, the Split for Each shape starts the same approval process for all users that meet specified conditions. For example, the approval process can begin for all users with managerial roles who can access the case. You can define how many approvals the case requires to move forward.- Add the Split for Each shape to your case life cycle:
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- In the Case life cycle section, in the process in which you want to add the Split Join shape, click Configure process.
- On the toolbar, click Open process in Dev Studio.
- On the Diagram tab, click the Flow shapes icon, and then select .
- Connect the Split for Each shape by dragging connector end points to connection points on different shapes in the process.
- Open the dialog box by double-clicking the Split for Each shape.
- Optional: To provide a unique name for the shape, in the Split for Each dialog box, in the Split for Each field, enter a new name.
- In the Join list, define when the parent process resumes
processing:
- To resume processing after all subprocesses are complete, select All.
- To resume processing after any subprocesses are complete, select
Any.
After any of the subprocesses are complete, processing of the remaining subprocesses stops and the system cancels open assignments.
- To begin processing of individual pages for which a specified when condition evaluates to true, select Iterate.
- To resume processing after a specified number of subprocesses is complete, select Some.
- In the Page property field, enter the Page List or Page Group property that is the basis of the split.
- In the Filter flow by field, select the subprocess
category:
- To start a subprocess that is a series of actions to complete, select Process flow.
- To start a subprocess that is a series of forms to complete, select Screen flow.
- In the Flow name field, enter the name of the subprocess that you want to run.
- Optional: To control whether the flow runs for all or some pages in the page property, in the
When field, enter a when condition that evaluates values in each
page.At run time, the system evaluates this when condition rule once for each page of the property in the Page Property field and starts a subprocess for any page for which this rule evaluates to true.
- If, in step 4, you select Iterate and your process resumes after a specified when condition evaluates to true, in the Exit iteration when field, enter a name of the when condition that resumes processing after evaluating to true.
- If, in step 4,
you select Some and your process resumes after a specified number
of subprocesses is complete, configure the conditions to resume processing:
Choices Actions Resume processing after a when condition returns a true value - In the Exit iteration list, select On when.
- In the When field, enter a when condition that resumes processing after evaluating to true.
Resume processing after a specified number of subprocesses reaches a certain status - In the Exit iteration list, select On count.
- In the Number of paths field, enter an integer that
determines how many subprocesses need to reach a certain status to resume
processing.
- In the Resulting with flow status field, enter a status that subprocesses need to reach to resume processing.
- Optional: To display a message in the audit trail of the subprocess, in the Audit note field, enter a rule that stores the audit note that you want to include.
- Optional: To provide a link to the subprocess in the breadcrumb trail navigation, select the
Enable navigation link check box, and then configure additional
navigation options:
- To enable users to get back to the subprocess after the case moves forward, select the Only allow navigating back to this step check box.
- To enable post-processing or validation when users navigate back from the subprocess in the breadcrumb trail, select the Perform post-processing when navigating away from step check box.
- If, in step 4, you select Iterate, to allow users to return to the entry points in the subprocess, select the Subprocess has navigation links check box.
- Optional: If in step 4
you selected Iterate, to define the order in which the system
evaluates the pages, in the Page group iteration settings section,
define exact values to evaluate at run time:
- In the Subscript order field, enter text that your process compares with the subscript value for each page in the group.
- Optional: To require an exact match, select the Exact match check box.
- Optional: To ignore the pages in the group that do not match the subscript order that you
provide, clear the Process remaining changes check box.Otherwise, your process evaluates the pages without a match after processing all conditions in the Page group iteration settings section.
- Click Submit.
- Click Save.
Previous topic Running multiple instances of different subprocesses with a Split Join shape Next topic About Flow Actions