Featured post

GetNextWork functionality in pega

What is GetNextWork in pega? Pega provided a functionality to get the most urgent assignment(task) for user to work on. This is configured o...

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

Spinoff is not a shape, it is an option in the sub-process shape. Which allows to run the sub-process independent and in parallel to main process. 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 sub process

spinoff option in pega

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, main Service Request application process can continue to Review stage where the management team will review the inspection report. In the Review stage, 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 Review is completed technical team will repair the issue. In the Resolution stage initiating "Generate Documents" sub-process as a independent parallel process. Service Request case will proceed further and resolve without waiting for SpinOff process (Generate Documents).
spinoff in case type

let's create a case and see the process.
spinfoff case creation
spinoff process
review repair
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 main flow and without stopping the main process we can go for spin-off option in sub-process.

Related topics in parallel processing: