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
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