Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By cosyxu
#813139
Hi Amo,

I was wondering, I have a process where it has an ABE task, what I want is that if no one clicks the ABE button in the email, after a certain time period, it will move on to the next task in the workflow instead of waiting for the response from the ABE task.

Is there any way that I can do that?

Thanks,
Yuan
User avatar
By amosbatto
#813142
You need to create a separate process with a looparound to execute a script task periodically. Here is an example:
viewtopic.php?f=44&t=730175&p=813063

The trigger in the script task would check the APP_DELEGATION table to see if there are any tasks older than a certain amount of time. If it finds any tasks which are older, then it automatically routes them with PMFDerivateCase().

The trigger code would be almost the same, but your query would need to be:
Code: Select all
$sql = "SELECT * FROM APP_DELEGATION 
    WHERE TAS_UID='$taskId' AND DEL_THREAD_STATUS='OPEN' AND 
    DEL_DELEGATE_DATE < '$anHourAgo'";  
$aDelegations = executeQuery($sql); 

To switch from PST to MBOX quickly and effectively[…]

NFT (Non-Fungible Token) marketplaces have witness[…]

AMP Review South Jersey - OkThumb

AMP Review South Jersey functions as the forum s[…]

An NFT marketplace development company specializes[…]