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?