Spin Off in pega

Parallel processing in Pega

We can allow users to perform multiple tasks independently to complete the work, in pega we can this as parallel processing. In a stage or flow rule, we can add smart shapes to achieve this parallel processing.

Smart shapes in pega

Pega has defined some smart shapes like Split JoinSplit-For-Each, and Spin-Off. We have to use these smart shapes in sub-process shape. Each shape can call one or more processes to proceed in parallel.

Spin-Off in pega

The spinoff is not a shape, it is an option in the sub-process shape. Which allows running the sub-process independent and in parallel to the main process. The main flow will not wait for the sub-process and no join options available for SpinOff processes.
spin off

How to configure Spin-Off option in a subprocess

spinoff option in pega

I Will explain with an example: In a Service Request case type when the user submits a request it should be going for the inspection process. Used Split Join shape to fulfill this requirement with two sub-processes. When all sub-processes are complete, the main Service Request application process can continue to the Review stage where the management team will review the inspection report. In the Review stage, the Inspection report will be reviewed and approved by various Reviewers. To fulfill this requirement we are using Split For Each shape and providing Reviewer details in a PageList. Pega will use this PageList and iterate the process. Once the review is completed the technical team will repair the issue. In the Resolution, stage initiating "Generate Documents" sub-process as an independent parallel process. Service Request case will proceed further and resolve without waiting for the SpinOff process (Generate Documents).
spinoff in case type


let's create a case and see the process.
spinfoff case creation
tracer
spinoff process
review repair
The main flow for Service Request continues without waiting for the spinOff sub-flow (GenerateDocs).
If you want to invoke an independent flow in parallel with the main flow and without stopping the main process we can go for the spin-off option in the sub-process.

Related topics in parallel processing:





6 comments: