05-27-2019 07:57 AM
I have created custom workflow with 5 step.
On 2nd step(it might be 3rd step or 4th step-base on some condition) I want to end workflow.
Is there any way to do this?
This workflow end is not from task form.It is from my java webscript or some where else.
05-28-2019 08:17 AM
Actually it depends on bpmn file, and how the workflow has been designed.If the workflow is on 2nd step and there are further more task in the workflow then you need to manually(by javascript code) end all task.Other way will be redesign workflow and have one more sequence flow which will be towards the ending of workflow and have a condition in the sequence flow.
05-28-2019 11:27 AM
A simpler way would be to add a signal boundry event on each user task and call the signal from your java code/listener using the process instance id.
05-29-2019 12:43 AM
I want to complete workflow using webscript not using listner.
05-31-2019 04:18 AM
In your webscritp you can use
serviceRegistry.getWorkflowService.endTask(taskId, null);
06-17-2019 05:34 AM
I want to end workflow,not task.
Explore our Alfresco products with the links below. Use labels to filter content by product module.