Page 1 of 1

step back a task with triggers or API

Posted: Thu Jul 22, 2021 4:20 pm
by morenoaguilera
hi, i need help

i want to step back a task on over a case something like this:

task 1
task 2 <- (desire step back )
task 3
task 4 <- (current task delegation index)
task 5
task n

the goal is for wherever reason move the current task for task 4 to task 2 (or other) without draw a new route in bpmn view, on API and function only i see code for jump or for move forward a case.

any help will be appreciate.

regards

Processmaker 3.3 Community

Re: step back a task with triggers or API

Posted: Thu Jul 22, 2021 9:09 pm
by kirkwg
Hello there,

Hi I haven't experienced your scenario to return to a previous task# before, but I had donesucessfully like this:

E.g. at Task_4 > submit > trigger to update a record in the PM table , then use PMFRedirectToStep() back to Task_4
Let me know if you need this example for your reference, I can show you the codes.

Reference link:
https://wiki.processmaker.com/3.2/ProcessMaker_Functions/Case_Routing_Functions#PMFRedirectToStep.28.29

You could trials and errors by following the link above. Cheers & good luck!