Page 1 of 1

REST API: Calling Execute Trigger endpoint when the process is inside a Parallel Task

Posted: Wed May 17, 2017 11:43 am
by joserendal
Hello,

I currently have a scenario where two users can approver in parallel in my process. When both tasks are active, and we try to call the executeTrigger method of the REST API, we are seeing the following error:

- If we login as one of the users and this endpoint of the API, it goes well. But if we login as the other user who has the task assigned, and call the same endpoint, it answers 'This case is assigned to another user' although he has a task to validate.

Are you facing the same error as me? How can we overtake it?

Thanks for your help

Re: REST API: Calling Execute Trigger endpoint when the process is inside a Parallel Task

Posted: Thu May 18, 2017 2:38 am
by mishika
Hello,

What is the error you see when you call the executeTrigger REST Endpoint?
May you please share your process here as it will help us understand the scenario and debug the problem.

Best Regards
Mishika

Re: REST API: Calling Execute Trigger endpoint when the process is inside a Parallel Task

Posted: Thu May 18, 2017 4:20 am
by joserendal
Hi Mishika,

I'm attaching our testing process. It was created with version 3.2 of Processmaker.

This is our scenario:
- We've got two different users registered in the platform.
- One of them creates a process, which then arrives in parallel to both of the users at the same time.
- At this point, we execute a trigger through the Rest API, first authenticated as one user, and then as the other one. Trigger is very simple, just contains a die("text") line.
- When we call to the executeTrigger endpoint from one of the users, it works perfectly. But later on, if we call the same endpoint from the other user, it is returning "Case is assigned to other user" response, though the process is currently waiting for both users to validate their corresponding task.

Do you understand the scenario more or less?

Thanks for your help