Skip to main content
sinushreeb7168
August 18, 2023
Question

Same tasks are getting assigned to the multiple users when trigeered at the same time

  • August 18, 2023
  • 8 replies
  • 0 views

Same tasks are getting assugned to the multiple user

We are using Appian version 22.3

We have the lists of tasks available for picked-up from task pool.
On a click of button GetNext, same tasks are getting assigned for the multiple users if click on the same exact time .

Can someone guide us for the resolution .

Thanks !!

8 replies

mathieud0001
Brainy
August 18, 2023

What does this GenNext button do exactly?

sinushreeb7168
August 18, 2023

GetNext button start the process that will query the task from Task table then assign the task to who click the GetNext first. We are assigning the task based on the active process instances which we are getting from the Process analytical report. If multiple users are clicking on the same time then the same task is being assign to the multiple users. 

mathieud0001
Brainy
August 18, 2023

Not sure why you are you doing it this way?

Why not assign it to a group and let the appropriate user accept the task?

stefanhelzle0001
Brainy
August 18, 2023

Yes, we might be able to do that, when you provide a lot more details about what is going on.

sinushreeb7168
August 18, 2023

GetNext button start the process that will query the task from Task table then assign the task to who click the GetNext first. We are assigning the task based on the active process instances which we are getting from the Process analytical report. If multiple users are clicking on the same time then the same task is being assign to the multiple users. 

stefanhelzle0001
Brainy
August 18, 2023

That is to be expected. When two simultaneous processes query the same table, they will get the same result which leads to the situation you observe. This is called a race-condition.

We might be able to come up with an alternative approach in case you can share even more details about the goal, solution, design and architecture of this application.