Hi All,
I would like to know, whether activiti has some built-in functionality for below scenario:
1. I have workflow with N number of sync job nodes.
2. Let's say after performing some jobs server goes down.
3. Whenever server is restarted, activiti should start the workflows automatically.
Thanks,
Jogin
Hi Jogin Mehta ,
1. I have workflow with N number of sync job nodes.
2. Let's say after performing some jobs server goes down.
3. Whenever server is restarted, activiti should start the workflows automatically.
The answer is yes. Process execution should be restarted when the server is back.
By default, Activiti configures a job to be retried up to 3 times upon failure. If your jobs had reached 3 times of retry because of the server down situation, you can manually restart the jobs by activiti-explorer or using the Activiti API such as Activiti REST calls.
Have you experimented this? Have you tried this in your environment?
Thanks,
Thong Huynh
Thanks for your reply.
I have seen retry mechanism for asynchronous jobs, where in workflow we specify activiti:async=true. For synchronous jobs it doesn't persist anything in database until whole workflow gets completed.
So, for synchronous jobs there seems to be no direct way to re-run workflow on startup.
Thanks,
Jogin
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.