[jboss-user] [jBPM] - Timer trigger in Junit test

Huisheng Xu do-not-reply at jboss.com
Tue Mar 30 06:26:25 EDT 2010


Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"Timer trigger in Junit test"

To view the discussion, visit: http://community.jboss.org/message/534601#534601

--------------------------------------------------------------
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
[http://community.jboss.org/message/534601#534601]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100330/da5dde6a/attachment.html 


More information about the jboss-user mailing list