Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#812622
Hello,

This endpoint "/api/1.0/{workspace}/cases/{app_uid}/execute-trigger/{tri_uid}" has a bug in version 3.1.X

I have a parallel task and trying to execute a trigger via api. But there's an error "Bad Request: This case is assigned to another user";

I found out that only one user assigned to a parallel task was able to execute the trigger.

Any solution to fixed this issue?
#812637
Are you using a task with a parallel marker or parallel tasks inside parallel or inclusive gateways?
TypesOfParrallelTasks.png
TypesOfParrallelTasks.png (11.5 KiB) Viewed 2667 times
I will test this tomorrow, but It sounds to me like this is a problem caused by the new security restrictions that only let a trigger be executed on a case if the logged-in user is assigned to the case or the logged-in user is a Process Supervisor for the case.
#812641
I solved this problem by exposing a custom api and used the function below.

public function executeTrigger ($userId, $caseId, $triggerIndex, $delIndex) located at class.wBase.php

If my solution is bad or any better solution than mine. Kindly inform me.

Thank you.

If someone will accept my solution then i will mark this thread as solved

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]