JBoss Community

Recover async activities after jBPM4 restart

reply from Michael Wohlfart in jBPM - View the full discussion

Hi Georgy,

my understanding is that async  executions are picked up by the job executor, so the following might  work and "restart" the excution for an async execution which was "lost".

 

ManagementService managementService = processEngine.getManagementService();

Job job = managementService.createJobQuery().processInstanceId(id).uniqueResult();

managementService.executeJob(job.getId());

 

...it's just a guess

Reply to this message by going to Community

Start a new discussion in jBPM at Community