Spinoff flow does not execute in parallel
A parent flow is configured with a Spinoff subflow to perform Asynchronous processing. However, the subflow is executed Synchronously instead. The parent flow is waiting for the subflow process to complete, thus impacting the run time.
Steps to Reproduce
- Configure a parent flow with a Spinoff subflow.
- Add a delay in the database procedure to verify if the process is executed asynchronously.
- Execute the flow.
The Spinoff flow executes immediately because it contains only a Utility shape.
As a local-change, use a Queue Processor to execute the activity asynchronously:
In this use case, the case is created as temporary, and a specific page of data is required for the Asynchronous activity. An activity is created to execute the Queue-For-Processing method with a named Step Page.
In the Method parameters, select None for the Lock setting and select the ‘Queue current snapshot of page’ option in the Advanced section.
When the Queue Processor executes, the snapshot of the page is available on the pyQueuePage. The Asynchronous activity is updated to copy pyQueuePage to the named Step Page as that is the page used in the Property-Set steps.