1. What You Will Learn

After finishing this tutorial you will be able to use Parallel Gateways correctly and to properly incorporate them into your PAK Workflows in the Editor. You can download the Editor here.

A parallel gateway is used to visualize the concurrent execution of activities and is used in pairs. When the process arrives at the parallel gateway node, all the outgoing flows exhibited from the gateway will be executed simultaneously.
ParallelGateway
Figure 1. Parallel Gateway

2. Prerequisites

To complete this guide you need:

  • Roughly 10 minutes

  • Installed PAK Editor

  • Installed PAK Workflow Executor

This HowTo does not contain a detailed introduction to the editor. Click here to learn everything about the PAK Workflow Editor.

3. Build the workflow

First you have to create a new BPMN

Editor NewBPMN
Figure 2. Editor New BPMN
Parallel gateways do not determine whether a condition is met. Instead, all subsequent process flows are passed through.
  1. Add the Parallel Gateway from the Controls to your workflow

    Editor Parallel Gateway
    Figure 3. Editor Parallel Gateway
  2. Create three SimpleOK tasks, connect the parallel gateway with edges to the three tasks and configure the properties of the tasks as shown in the picture.

    Editor SimpleOK Command 3
    Figure 4. Editor SimpleOK Command 3
  3. Then merge the paths through another parallel gateway and add an end event to the BPMN

If you choose use a different Gateway (for example a Exclusive Gateway) for closing a parallel Gateway the “End” Node will be reached 3 times.
Editor Parallel Gateway Example
Figure 5. Editor Parallel Gateway Example

4. Test / Run the workflow

You can download the PAK Workflow Executor here.
You can download the Example Workflow here.
  1. Save your BPMN via the menu File → Save to your destination folder.

  2. Open the Workflow inside the Workflow Executor Application via the “Open new Workflow” Button.

  3. Start the workflow with the Play Button on the right side.

Executor Parallel Start
Figure 6. Executor Parallel Gateway Start
Executor Parallel SimpleOK
Figure 7. Executor Parallel Gateway SimpleOK
Executor Parallel End
Figure 8. Executor Parallel Gateway End

5. Summary

In this tutorial we have learned to use the parallel gateway with a simple workflow, and to configure it so that it can determine the path.