top of page

Exploring Parallel Processing in Pega: Enhancing Workflow Efficiency

Parallel processing is a powerful feature in Pega that allows for multiple processes to run concurrently within a single stage. This capability enables users to perform tasks independently, thus speeding up the overall workflow. For complex parallel processing requirements, Pega offers various tools including the ‘Split Join’ shape, the ‘Split For Each’ shape, and the ‘spinoff’ option in the Subprocess shape.

 

Understanding Parallel Processing Tools in Pega

 

Split Join

 

The Split Join shape is designed to call multiple independent processes that operate simultaneously and later rejoin. This shape provides flexibility through join conditions that dictate when the primary process can continue. For instance, if a Split Join includes three separate approval subprocesses, you can configure it so that the main flow resumes after only two of the three approvals are completed.

 

Split For Each

 

The Split For Each shape allows a single subprocess to run multiple times by iterating through a set of records stored in a page list or page group. Similar to the Split Join shape, it uses join conditions to control when the main flow resumes. With an iterate join condition, you can initiate flows for elements in a Page Group or Page List property sequentially, using testing conditions to determine whether to continue.

 

Configuring Join Conditions

 

Both the Split Join and Split For Each shapes have property forms where you can specify join conditions to control when the main flow resumes:- Any: The main flow resumes after any one subprocess completes, cancelling any other subprocesses that are still running.- All: The main flow resumes only after all subprocesses are completed.- Some: The main flow resumes based on a when rule or a count.- Iterate (Split For Each): Initiates flows for items in a Page Group or Page List property one by one, using an optional when condition to determine whether to start the flow for a given iteration.

 

Spinoff

 

The spinoff option in the Subprocess shape allows a subprocess to run independently and in parallel with the main flow. Unlike the other shapes, a spinoff does not have a join condition because the subprocess does not rejoin the main process. This means the main process continues without waiting for the subprocess to complete.

 

Conclusion

 

Utilizing these parallel processing tools in Pega can greatly enhance your workflow efficiency. By understanding and effectively implementing Split Join, Split For Each, and spinoff options, you can ensure that your processes run smoothly and concurrently, saving valuable time and resources.

 

For more insights on optimizing your Pega applications, stay tuned to our blog.

 

 

-Team Enigma Metaverse




6 views0 comments

Comentários


bottom of page