i have an scenario that have email listener as an activity. So we created service task to consume every new email come to inbox. Here whenever we deploy diagram or start an execution we are stating MailNotificationService thread to fetch new email and send to subsequent activities in async manner. Its working fine. But when we reboot camunda engine, process instance is started without stating MailNotificationService thread. How can i start that attached threads whenever server restarts? Is camunda firing any event while rebooting sever for running instances?
I am using SpringBoot embedded camunda with custom pre Bpmn Parse listener with History level FULL.
I am deploying my bpmn diagram thru camunda-modeler.v2_mail_dms_upload.bpmn (4.0 KB)
Generally this could happen if the job executor is turned off or if you have deployment aware set to true.
Take a look at the settings here and see if you can ensure it’s setup correctly.
I enabled camunda.bpm auto configuration. but still i didnt received any event while restarting server that restarts process instances. Is there any event handler need to register? Also jobs are not created for my running process instance. Only process instance with active state record I found.
My use case is, I am having Service Task, that internally invokes MailNotificationService thread to fetch mail periodically. So when ever server rebooting i need to start that MailNotificationService thread also.
How can i achieve this? Which process flow sync/async I need to use?
Please share your suggestions.
Note: Here I added pre bpmn parse listener plugin to engine. So when ever I opened Cockpit and click on specific bpmn process diagram at that time I am getting parse events. I want same should be happened while rebooting server. Also I want to persist custom listener added at runtime to process.