Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Spinoff flow does not execute in parallel

SA-104474

Summary



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.


Error Messages



Not Applicable


Steps to Reproduce

  1. Configure a parent flow with a Spinoff subflow.
  2. Add a delay in the database procedure to verify if the process is executed asynchronously.
  3. Execute the flow.


Root Cause



The Spinoff flow executes immediately because it contains only a Utility shape. 

Resolution



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.
Suggest Edit

Published August 5, 2020 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us