How to restart the workflow

Confluence User - 16 Mar, 2017

Hi, Currently I have a process with multi-level approval activity. 

For example: Requester -> Manager A, Department Head, CEO, 

In the case where there will be editing during the process running  (i.e: Pending for Department Head's approval), the requester can actually edit the form. In this case, What is the better way to restart the workflow from Manager A approval again and also aborted the existing running process. 

 

 

workflowrestart

2


16 Mar, 2017
confluenceUser
confluenceUser

Hi Oz Boo

  1. If you don't want the requester to edit the form after submission, set his view of the form to readonly in userview. Meaning CRUD = readonly for requester category menus.
  2. You can abort the existing running process in Monitor Process screen but note that this will not delete the original form record. (/jw/web/console/monitor/running). 
  3. The easiest way to restart the workflow from Manager A is to submit a new process record.

 

16 Mar, 2017
confluenceUser
confluenceUser

I'm actually looking for the automatically way (Bean Shell programming in the post processing tool) to submit a new process, but i'mstruggling to aborting the existing process instance. 

Case 1:

workflowManager.processStart(process.getId(), null, null, null, recordId, false);

result: I'm getting a new process submitted for Manager A, but the existing instance is still running.

Case 2:
workflowManager.processCopyFromInstanceId("349_DeviationApprovalV3_DA_process",process.getId(),true);

Result: Existing process instance was terminated, but new process instance was created with the task was assigned to Department Head

 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print