In a unit test, you can use the JobExecutor to find and execute timer jobs. For an integration test, you can activate the job executor and manipulate the current time using the ClockUtil.
You can find all informations about timer events in the User Guide.
By the way, a duration of 5 seconds can also be specified as “PT5S”.
Could you please elaborate/provide an example to understand better.
I have enabled/included Job Executor in my app (property name=“jobExecutorActivate” value=“true” in camunda.cfg.xml), but still its not working.
The process works perfectly fine on Camunda 7.4.0 for me. It may take a little longer than five seconds for the job executor to pick up the job if you have an otherwise empty job table, because the job acquisition thread becomes idle and polls less regularly when there is no work to do.
Add your BPMN XML to src/main/resources, build the application, deploy it to the standard Camunda BPM Tomcat distribution, and start the process via tasklist.
Hello @Harshal_Temkar, hello @thorben,
I am using Camunda version 7.8 currently and it works only if <property name="jobExecutorDeploymentAware">true</property> (in bpm-platform.xml) is commented, deleted or set to false.