Ask questions about installing and configuring ProcessMaker 3
By mickyus
#789520
Hello,

I would like to know how to continue some tasks without clicking task in inbox.
For example, a user works for task1 and task2. Task2 is assigned after the task1. The user needs to go inbox and click the task. it is annoying. Is there setting to continue multiple tasks if it is same user's task?

michkyus
User avatar
By amosbatto
#789524
You can use a trigger to do this. See Example 3 in http://wiki.processmaker.com/3.0/Proces ... Case.28.29

However, if the user assigned to the next task in the process is not the same as the logged-in user than he/she will see the case summary, because he/she doesn't have rights to open the case in the next task. You can check in the APP_DELEGATION table if the same user is assigned to the next task before redirecting with a trigger like this:
Code: Select all
$aTasks = PMFGetNextDerivationInfo(@@APPLICATION, @%INDEX);
if (count($aTasks) > 0) {
   $nextTaskId = $aTasks[0]['taskUid'];
   $caseId = @@APPLICATION;
   $index = @%INDEX;
   //check if the user assigned to next task is the same as the current user
   $res = executeQuery("SELECT USR_UID FROM APP_DELEGATION 
      WHERE APP_UID='$caseId' AND TAS_UID='$nextTaskId' AND DEL_INDEX > $index");
   if (count($res) > 0 and $res[1]['USR_UID'] == @@USER_LOGGED) {
      G::header("Location:cases_Open?APP_UID=$caseId&DEL_INDEX=$nextIndex&action=draft");
      die();
   }
}   

Fildena double 200 mg capacity to move the relaxin[…]

Wat is Fildena Double 200?

Fildena double 200 mg capacity to move the relaxin[…]

💥 Join the Exclusive Trading Community and Experie[…]

Briefly introduce the topic and provide context. S[…]