Activity_121gfc7 StartEvent_1 Activity_0cya923 Event_1pi0b2e Activity_0tr6u2s Activity_041y60h Flow_08b39kn Flow_12s1u1h Flow_08w5ra5 You have likely run across Swim Lanes before - it is an elegant way to describe who is responsible for what. This is a very simple example. You will complete a form, and then, (because we assign you to the lane) you will be asked to approve it as well. We do this so you **can** complete this process. If we assigned the lane to someone else, you would not be able to make the approval and complete the process. A very similar diagram powers the signup form for Request A Playground. There you will see a message saying that the next task belongs to someone else. When you complete this form you will see the diagram that drives this process. You will notice that there are two lanes, once that shows this introduction and a form, and another lane that belongs to an "approver". So how do lanes get assigned to specific people? ### Lane assignment can be done in two ways. #### Lane assignment with Groups SpiffWorkflow can be configured to read group information from your organization in a number of ways. We will cover that topic in an article on Integration later on. If a lane name in your BPMN diagram matches the name of a user group, then it will allow any member of that group to complete the task. #### Lane assignment with Task Data You can set it in the Task Data, via a script task or using a Decision Table. For instance, a script task like the following: ```python lane_owners = { "Vacation Approver": ["The Funkalicious Dan"] } } ``` Would assure that any lane labeled "Vacation Approver" in the current diagram will be assigned to the user with id "The Funkalicious Dan". The example here uses this approach, it figures out who the current user is (that would be you), and assigns you the "Vacation Approver" group. You can see this happen in a script task when you open the the my_vacation.bpmn file from the Process Model page. Flow_08w5ra5 Flow_08b39kn Thanks so much for checking out Lanes - this is very simple example. You could have dozens of lanes in a single diagram, or modify the list of people allowed to complete a process in a loop. Imagine you need sign-off from 3 of 12 potential people. You could loop back to the same process 3 times, each time removing people from the list of possible candidates. Like many aspects of BPMN, it is a very simple visual representation that is also very robust and easy to shape to many different circumstances. ### What's Next? Please check back frequently, we will be adding new documentation and examples on a regular basis. ### Get Involved! Please get in touch with us! We would love to help you as you orchestrate the flow of tasks between many people and groups. There is no end to what we can accomplish if we work together. Please reach out to Dan at [dan@sartography.com](mailto:dan@sartography.com) to get started. Flow_0dsxo60 Please complete the form below to approve or deny the vacation request. * **Requested By**: {{requested_by}} * **Location**: {{location}} * **Season**: {{season}} * **Activities**: {{activites}} Flow_1c2wuo0 Flow_0dsxo60 Flow_12s1u1h Flow_1c2wuo0 requested_by = get_current_user()['username'] lane_owners = { "Vacation Approver": [get_current_user()['username']] }