My use case is to do an auto assignment of a task to the user based on certain logic or number of task he is working on.
How can i get access to this information.
Do we have Identity Java client and Task list client in camunda 8.5+ (just like identity service and tasklistservice in camudna7) . How do we access it?
Also how can we attach a task listener to a human task which gets called before and after every human task is created.
Hi @ShilpaN.Chalke - user task listeners are scheduled for the 8.8 release in October, which would be the ideal answer here. In the meantime, there are a few other solutions, each with their own pros and cons.
- Call a job worker/connector in a task right before the user task, which determines which user the task should be assigned to (works for all versions)
- Use an execution listener for the start of the user task (only available in 8.6+)
- Use a custom tasklist application (works for all versions)
Depending on how complex the assignment needs are, a custom tasklist application might be the approach I personally would take. The reason being that Zeebe is fully async, so if you’re using a service task or execution listener, it’s happening for that single process instance. It’s harder to handle race conditions or urgent updates; but if I had a custom tasklist application that was receiving updates from the running processes, but was also aware of all open tasks and assignments, it might be the best of both worlds.