cancel
Showing results for 
Search instead for 
Did you mean: 

Jobs deleted on server shutdown

gizmo1177
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Can you turn on history and check whether job has reached next wait state?

Regards
Martin