Question


Accenture
IN
Last activity: 11 Sep 2017 14:33 EDT
How to execute Parallel flows
Hi Guys,
please take look into my scenario and give me some suggestions.
I have a pagelist. Within that page list i might have N number of pages( 1 to N).
If the page list contains 1 page, i need to execute 1 flow( or some rules) based on the page details. In the same way, for 3 pages, i need to execute 3 flows(same rules) parallely NOT ONE BY ONE.
So , simply i want to process all the pages of a pagelist at in the same time, not one by one.
Any leads please
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
IN
Hello
I think Spinoff will be useful when you want to initiate/start another flow parallelly without stooping the current flow.
Refer below articles for details
https://community.pega.com/sites/default/files/help_v72/procomhelpmain.htm
https://pdn.pega.com/forums/case-management-and-process/real-time-examples-split-foreach-spin


TCS
IN
Hi Santanu,
Would spin off take the pagelist value as well?
Split for each does that and flow gets executed as many times as the pagelist value, but it is not in parallel fashion. Is there any way to achieve this is parallel?
Thanks in advance
Aparna


Rabobank
NL
Split For Each should suffice this requirement. It takes the page list as input and launches parallel flows based on the size of the page list. Moreover, it also provides configuration to decide when to resume the parent flow.


TCS
IN
Hi Kumaa,
The split for each is being called in series fashion. The connect rest configured in the flow waits for the first time execution to get completed before proceeding to the next execution. The services are configured to run in parallel but Pega calls it in series fashion (this was confirmed by the timestamps of service hit).


Pegasystems Inc.
IN
Can I know the Join condition. Is it Iterate. Iterate will not allow to create subprocess in parallel.


Pegasystems Inc.
IN
Split for each is not a true parallelism per say. It only achieves business parallelism. In your use case, it will finish processing first flow till it reaches a stopping point (assignment) and then moves to next flow.
Let me know if this helps :)


TCS
IN
Thanks for this information. If that is the case, can you suggest anyway to implement parallelism with respect to pagelist values?
Requirement : The language associated is being stored in a pagelist. The connect rest has to be called as many times as languages present, in parallel.


Coforge DPA Private Ltd
IN
Hi,
Split For Each works fine for your requirement for running the same flow for multiple times(For each page in pagelist) parallely and you have an option to resume the main flow(by completing any,some,all flows). By default Split For Each run all the flows parallely and also you have an option to iterate the flows one by one.


TCS
IN
Hi Yashwanth,
With Split for Each the flow is not being executed parallely. It waits for one flow to finish before executing next flow. This was confirmed by the time stamps of service hit for each flow.


Virtusa Consulting UK
GB
Split For Each might work as is, but the requirement is to execute rules for each embedded page based on the content of that page. So, you will need to tweak it a little bit here and there to make it work for your scenario.


Randstad Technologies US
US
you can create multiple subcases based on page list and in the sub case configure the flow how you want to execute .select optimistic locking for subcase and unselect 'lock parent case ....option'