I've modelled a process which uses an Intermediate Catch Event with timer.
The timer's purpose is to pause the process token at that point for 10 minutes which works as expected.
In a Junit test I like to trigger this timer manually so that the process continues.
I'm pretty sure that I've already seen how to do this in a tutorial. But after hours of searching I haven't found it.
Since the process currenty contains only a single timer a first solution which did work for me is this:
Job job = processEngine.getManagementService().createJobQuery().singleResult(); processEngine.getManagementService().executeJob(job.getId());
But I prefer to specify the job more precisely in case the process grows and number of jobs in the process grows.
I'm using Bpmn2 Diagram Editor in Eclipse. In the properties view I can specify various properties of the Timer Event (e.g. "Id", "Nam2", etc.)
Can any of these properties be used in the job query?
Thanks very much for any help.
Hi Sascha.
+1 – I would recommend to use camunda-bpm-assert for testing as it simplifies the test code a lot (and thus makes it much more readable).
Cheers
Bernd
Consultant & Evangelist (www.camunda.org/community/team.html)
We are hiring: http://www.camunda.org/community/jobs.html
--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/2f8ec280-4944-422a-a425-b7b97f18ddd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the quick help.
We already use the camunda-bpm-assert.
It makes things really easy.
--You received this message because you are subscribed to the Google Groups "camunda BPM users" group.To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/0c8eef09-e438-4f3c-bbe5-2753841326ea%40googlegroups.com.
Thanks very much.
Works great with the camunda-bpm-assert lib.