Community

Timer trigger in Junit test

reply from Huisheng Xu in jBPM - View the full discussion

In unit test, you can use managementService to execute Job/Timer.

 

ManagementService managementService = processEngine.getManagementService();

Job job = managementService.createJobQuery().timers().processInstanceId(piId).uniqueResult();

managementService.execute(job.getId());

Reply to this message by going to Community

Start a new discussion in jBPM at Community