Posted: 4 Mar 2020 16:40 EST Last activity: 13 Mar 2020 16:39 EDT
Spinoff flow not executing in parallel
I have an activity that writes data to the database using RDB method. This activity is called in the last stage of my case type and have no functional impact on the case status. So I want it to be executed asynchronously.
Thus, in the last stage I used Subprocess shape with Spinoff checked to call a flow(subflow) which in turn uses utility to call the activity. I have put a delay 5 seconds in the DB procedure to see if the process is executed asynchronously then the whole elapsed time should not include the 5 seconds. But when I am testing, the elapsed time is coming more than 5 seconds which means it is not executing the subflow asynchronously.
Please advice if there is any configuration that needs to be done for the spin off to be executed asynchronously. Any help in this matter is highly appreciated.
It looks like the spinoff flow is executing immediately since it just contains a utility shape. Have you considered using the "Run in background" smart shape instead. It seems like that might be better for your scenario.