AnsweredAssumed Answered

Jobs deleted on server shutdown

Question asked by gizmo1177 on Apr 27, 2016
Latest reply on Apr 28, 2016 by martin.grofcik
I am evaluating the activiti engine. The engine will be initialized as following:

processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration()
            .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE)
            .setDataSourceJndiName("openejb:Resource/jdbc_activiti")
            .setEnableProcessDefinitionInfoCache(true)
            .setAsyncExecutorEnabled(true)
            .setAsyncExecutorActivate(true)
            .buildProcessEngine();

Process execution, variable values, history, … are stored in my own database. Now i have a problem, when simulate a server crash/shutdown.

1. Simulate server crash while executing process
–> Everything works fine on restart. The process execution will be continued with latest state.

2. Server shutdown while executing process
–> Here is the problem. I see the process data in the database, but the job record in table act_ru_job is gone. The process exists and is active but no timer triggers.

What is the difference between the simulated server crash and a shutdown?

Outcomes