[jbpm-users] [JBoss jBPM] - Re: Concurrency/Async

mwohlf do-not-reply at jboss.com
Wed Aug 19 12:44:20 EDT 2009


Hi mmusaji,
if my understanding of the job scheduler is correct, the execution time for your unit test is 11 sec?
Maybe you should use threads like so (not tested):


  | 		List<Job> jobs = managementService.createJobQuery()
  | 		.processInstanceId(processInstanceId)
  | 		.list();
  | 
  | 		for(final Job job: jobs) {
  | 			new Thread(new Runnable() {
  | 				public void run() {
  | 					managementService.executeJob(job.getId());  
  | 				}
  | 			}).run();
  | 		}
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250449#4250449

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250449


More information about the jbpm-users mailing list