Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By kuldahar
#822278
Hello everyone
I would like to ask if there is any way to roll back the process in the PM, that is, someone has mistakenly sent the process to the next step, and then the handler can return the process to the handler of the previous step. Is there an interface or method that comes with the system, instead of drawing a return line on the flowchart?
User avatar
By hekmati
#822285
according PM documentation you can create a trigger to that to go to previous task:

$c = new Cases();
$aStepInfo = $c->getPreviousStep();
if (is_array($aStepInfo))
G::header("Location: {$aStepInfo['PAGE']}");
else
G::header('Location: cases_List');
User avatar
By amosbatto
#822287
The above code works to go to a previous step (Dynaform, Input or Output Document) within the current task. If you want to return to a previous task in the case, then you will need to delete the records for those tasks in the APP_DELEGATION and APP_CACHE_VIEW tables in the database.

Then change the record for the task to be reopened. Change APP_DELEGATION.DEL_THREAD_STATUS and APP_CACHE_VIEW.DEL_THREAD_STATUS from 'CLOSED' to 'OPEN'. Change APP_DELEGATION.DEL_FINISH_DATE and APP_CACHE_VIEW.DEL_FINISH_DATE to NULL. (Note: you can also use the PMFUnCancelCase() function to do this in a trigger.)

This will move the case back to the previous task, but all the data entered in the subsequent tasks will remain in the case. If you want to delete that data, then you need to change variables stored in the APPLICATION.APP_DATA field, which are stored in a serialized format.

If you don't want to change the database, you can change the process to add a loopback to the previous task:
Image
This means that you will need to have a variable that can be checked in a condition to loop back to the previous task.
You can use Value Based Assignment or Manual Assignment in the task which is being returned to if the task needs to be assigned to the same user as before.

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[…]

Betvisa clone scripts are pre-built software solut[…]

A Bet365 Clone Script is essentially a ready-made […]