Search code examples
camundacamunda-plugincamunda-spin

How can assign Camunda task automaticly?


Is there any way to assign Camunda tasks to users round robin? Or any automatic pattern?


Solution

  • You can use an expression with a process variable in the task assignment attribute. The value of the process variable can then be determined dynamically before the user task is reached. You can for instance call a service to get the desired assignee or use DMN. Here is an example: https://camunda.com/blog/2020/05/camunda-bpm-user-task-assignment-based-on-a-dmn-decision-table/

    I would not recommend assigning work to individuals by default. It is not required in most scenarios. Instead assign the tasks to a group/role and let people take the tasks from the group worklist when they are free. Round-robin seems like a scenario where you want to ensure equal task distribution. However, in real-world scenarios people do not always have the same capacity, go on leave, etc. Then you will have to deal with monitoring and reassigning the task in these cases. The audit trail and Optimize provide transparency and can create reports of task completion volumes. One can get people to complete the appropriate amount of work items without fixed task assignment to an individual.