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.
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.
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.
I want to complete workflow using webscript not using listner.
In your webscritp you can use
serviceRegistry.getWorkflowService.endTask(taskId, null);
I want to end workflow,not task.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.