JBoss Community

Re: Restart JBPM5 Process after system crash

created by Demian Calcaprina in jBPM - View the full discussion

Hey,

 

at the moment of the "crash", the processes has been persisted? A process is persisted when it reaches a "wait state". I catching signal event is a wait state.

 

If so, you can simply do,

ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, null, env);

ksession.signalEvent("Trigger", null);

 

as the processes are already persisted in db.

 

Demian

Reply to this message by going to Community

Start a new discussion in jBPM at Community