I have a custom implementation [ I do not use activiti bpm - UI or its persistence ]
All tasks are implementation of java delegate as diff task types and i create a pure java activiti model and run it via activiti process engine.
Say there is a linear workflow containing 3 tasks and sequence flows tying them together. How do i implement so that activiti understands the task failed or succeeded. As of now it just runs each line of code in the taks and moves on to the next task.
Desired behavior is, if a task fails, subsequent task should not start and process should exit.
Is there any way above can be achieved in activiti?
If a task fails it should throw an appropriate exception or other business error. The workflow engine will not continue then. Exiting the process could be implemented using an error boundary event handler to react to the specific issue.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
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.