Question

Spin Off, Split Join, Split for Each

Hello Guys,

Can somebody take time to clear the confusion about Spin off, Split for Each and Split Join concepts in detailed with real time example?

As far as I understood spin off works when the main flow execution is independent of sub process execution.

Split for Each and Split Join are used for dependent sub processes, meaning the main flow progress stops until the sub flows ends in their execution .

But I am unable to correlate the concepts with real life scenarios.

Thanks in advance,

Prasan

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
August 17, 2015 - 4:32pm

Split for Each : You have one flow, let's say Approval and you want to run this flow for all elements in Page list to assign to different approvers. So this shape will start multiple instances of same flow based on number of elements in Page list. You have to specify one flow name and page list name in configuration

Split Join : You want to start multiple flows ex. BackgroundCheck, EmploymentCheck etc. This is not based on a Page list, you need to specify all Flows to start in configuration

Comments

Keep up to date on this post and subscribe to comments

August 17, 2015 - 3:03pm

One example where you'd want to wait for all the subflows to complete and you'd want to let them proceed in parallel because you didn't care in what order they completed would be if, let's say, you required approval both from the legal department and the financial department.  each department would do their approval evaluation using one of the subflows, and each would finish in their own time so we don't know which finishes first.  (Of course, one or both might disapprove, so it's important to make sure that is detected properly by the calling flow).

An example where the main flow may not care about waiting for the subprocesses is if each subprocess is running an automatic dialer to deliver a message to a set of customers.  The main flow may only need to know that the dialers have been launched and they are now busy dialing and delivering their message, but the main flow may not need to wait for all the dialing to be complete.

/Eric

August 17, 2015 - 3:07pm
Response to ericosman_GCS

Hi Eric,

Interesting explanation. Could you please differentiate when and where to use the dependent strategies Split for each and split join.

Thanks in advance

Prasan

Pega
August 17, 2015 - 4:32pm
Response to PrasannaK8545

Split for Each : You have one flow, let's say Approval and you want to run this flow for all elements in Page list to assign to different approvers. So this shape will start multiple instances of same flow based on number of elements in Page list. You have to specify one flow name and page list name in configuration

Split Join : You want to start multiple flows ex. BackgroundCheck, EmploymentCheck etc. This is not based on a Page list, you need to specify all Flows to start in configuration

August 17, 2015 - 4:40pm
Response to rawap

Excellent. Thanks for your help Pankaj.

-Prasan

July 7, 2016 - 6:04am

Can any one please summarize the difference from spin-off, split-join and split for each  ?

December 16, 2016 - 2:40am

can any one tell me about " On Ebedded page " option  meaning in "define flow" in split join shape ???