A swimlane represents a participant of a business process. This may be an employee, a department, a customer, a supplier or a role, for example, the initiator or approver. A participant represented by a swimlane is responsible for performing the tasks placed in the swimlane.
Thus, by adding all the swimlanes to the process and placing the corresponding tasks in them, you will graphically represent the interaction between the process participants and describe the sequence of actions that must be taken by each of them.
Types of swimlanes
To represents participants of a business process, you can use one of the following types of swimlanes:
Dynamic - used if the job position of the participant is determined during the execution of the process. In the diagram it is indicated in green.
Static - choose this type if the job position of the responsible user is known before the process begins. In the diagram, it is indicated in gray.
On the process diagram, swimlanes can be positioned both vertically and horizontally.
How to create a swimlane
A swimlane representing a Process Initiator is created automatically. Other swimlanes can be added in two ways:
- Click the + icon
- Drag an item from the right panel to the modeling sheet.
To make it easier for you to understand swimlane settings, let's take as an example the purchase request process.
Below you can see all the process steps and process participants:
- Any employee can create a request and send it to his/her manager for approval.
- The manager rejects or approves the request.
- In case of a positive decision, the warehouse staff checks the availability of goods. If the requested product is in stock, it will be given to the initiator.
- If the product is not in stock, the warehouse employee will be assigned with the task to purchase the requested product.
- After the product is purchased, it will be given to the person who started the request process.
Let's describe the participants using dynamic and static swimlanes.
If any employee can start the process, then at the stage of process modeling his or her name or job position will be unknown. The system will determine the specific performer while the process is executed. In the diagram, the performer will be represented by a dynamic swimlane.
The Initiator swimlane is added automatically when you create a new process. To open the settings window, double-click on its name.
The Initiator variable is also created automatically. Its value is determined immediately after the process starts. This variable stores the information on the user who launched the process. You can use this variable when modeling task forms, notifications, etc.
Let's add another swimlane that will represent the manager of the Initiator. By default, a dynamic swimlane is created. Its name is Executor 1.
To increase readability of the process diagram, rename the swimlane to Manager. To do this, open the settings window.
Now you need to specify a variable that stores the performer of the task. It is determined every time someone starts a process. For example, the initiator will select his or her manager from the list of all company employees when filling out the request.
Click the Create New Variable button and in the opened window specify the necessary parameters.
In this case, all required fields will be filled in automatically. Please note that you cannot change the type because in swimlanes you can only use the User type variables. However, you can specify additional parameters:
- One - the variable will store only one user.
- Many- multiple users will be stored in the variable.
- Show locked users - you can specify locked users as the variable value.
Select options you would like to apply and click Create.
Once this is done, the settings window of the Manager swimlane will look like this:
Thus, using dynamic swimlanes we represented two process participants. Now let's proceed to the static swimlane settings.
Swimlanes of this type are used if you know in advance which position the process participant holds or which user group he or she belongs to.
In the third step of the Purchase request process, the warehouse employee checks whether the equipment is in stock. Since we know who exactly will perform this task, we use a static swimlane to represent this process participant.
Add a new swimlane and go to the settings window. To improve the readability of the process diagram, rename the swimlane and then change its type.
Let's look at other swimlane settings.
- Variable – here you may specify a "User" type variable that will store information about the position and the name of the process participant. You may use this variable when modeling task forms, notifications, etc. However, this field is not required for a static swimlane. Since the executor is known in advance, it can be defined in another way, for example, using an organizational chart or a user group.
If you select a user group or department as an executor, the task will be assigned to all staff members of this group or department. As soon as someone starts to work on the task, it will disappear from the list of tasks of other employees.
If you place several tasks in the swimlane, then each new task will be automatically assigned to the employee who performed the previous task.
In the process diagram, the swimlane representing the user group or department is indicated by the icon .
Thus, after setting up all the swimlanes, the Purchase request process will look like this:
You can manage access permissions of the process participant represented by a swimlane.
In the swimlane settings window, open the Access Permissions tab. By default, the system automatically provides permissions to app items and files used in tasks.