Assign a user task automatically

Hello,

Here’s one scenario: once the process flow is started, we assign the task to the group users; in the group users task form, we use the REST API to list all users in a dropdown field; for the time being, we manually select the users from the dropdown field and assign the task to the selected user.

So, if the group users are not present at the time, I want to make an automatic assignment without selecting a user from the group users task form, and I want to distribute all of the work evenly among the users.

Example:

The first created task should be assigned to User1 and the second task to User2. like this should be automated.

Hi @Thulasidharan - this is an interesting scenario. This isn’t something Camunda itself supports out of the box. If I were doing this right now, I think I would add a gateway after fetching the users which determines if they are available or not, and if they aren’t, use a service task (job worker, REST connector, etc.) to call a service to determine who the task should be assigned to.

1 Like

Hi @nathan.loding, Thanks for your response.

I am new to Camunda, Can you please share some example screenshots how we can achieve this?

@Thulasidharan - this is an example of what I described: