if a task is failed in the middle of the process flow, that will not be able to continue. The failure reason can be db server issue or something. Please suggest me a way to overcome this issue.
You can use an error boundary event that is thrown if an error occurs during a task or call activity. It stops the normal process flow and diverts the process to an exception flow. Then you can define a sub-process to correct the error and continue the process.
Go to -> Administrator-> BPM-> Cases-> Failed Cases-> Open the Case->Click on the Failed Human Task -> On the browser Url, See the Id that is mentioned. Each failed human Task has a failed Task Id mentioned in the Url once you open the Failed Human Activity.
Now just pass the failed Id from a custom User form to the script.
Once you click on the Submit, this script will run and the Human Task will be re-tried. If the Main cause of Problem is corrected , Human task will be working again and assigned to correct user.
Thank you very much @Dibyajit.Roy. I tried your way. That's working for me.
I would like to handle the errors using boundary event also. Do you have any idea about that. I found https://community.bonitasoft.com/error-management-bos this example. but the downloading link seems to be corrupted.
You are right this blog article is very well to understand the different ways to handle errors using boundary events. The example has been removed from the project section because it is only available for v 5.x
I will work on a new example and will keep you posted as soon as it is ready.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.