Camunda Restart

HI All,

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?

Please help to resolve this one.

Can you give more details?
Explain your engine settings, how you’re deploying models to the engine etc.

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)

Can you show you application.yml file?

please find attached config files.
application-local_yaml.txt (1.2 KB) application_yaml.txt (1.2 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.

Hi Niall,

Below is my engine config,

camunda engine properties

camunda.bpm:
  enabled: false
  history-level: FULL
  database:
    type: mariadb
  authorization:
    enabled: true
  filter:
    create: All tasks
  webapp.application-path:
  job-execution:
    enabled: true
    deployment-aware: true

I set both true/false for ’ deployment-aware’ properties, but no hope to get any event for deployed process instance while rebooting engine.

is anything i missed?

Why did you set this?

camunda.bpm:
  enabled: false

Hi Niall / Team,

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.