Questions and discussion about using ProcessMaker 2: user interface, running cases and functionality

Moderator: amosbatto

Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
User avatar
By amosbatto
#814195
You can use this trigger code to execute another trigger:
Code: Select all
$triggerBId = PMFGetUidFromText('TriggerB', 'TRI_TITLE')[0];
$g = new G();
$g->LoadClass("wsBase");
$oWS = new wsBase();
@@ret = $oWS->executeTrigger(@@USER_LOGGED, @@APPLICATION, $triggerBId, @%INDEX); 
Where "TriggerB" is the title of the other trigger.

You can also use the executeTrigger() web service or PUT /cases/{app_uid}/execute-trigger/{tri_uid} to execute TriggerC and TriggerD, which is recommended if you want to execute a trigger in another case or task or as another user.
Calculate hours of day/week

Thank you Amos, The four other variables are for[…]

timing control

I suggest that you file a bug report about it at[…]

Hello Amos, Would this solution work also for PM […]

Hi amosbatto! When I send a request from ajax to[…]