[jboss-user] [jBPM] - Subprocess wait state signal handling not working from parent process (jBPM 4.3)

Maciej Swiderski do-not-reply at jboss.com
Thu May 27 11:41:45 EDT 2010


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion

"Subprocess wait state signal handling not working from parent process (jBPM 4.3)"

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

--------------------------------------------------------------
Hi,

what are you trying to achieve with timer? Is it used to signal wait state after particular period of time? If so it should look like this:

     <transition name="toGetStatus" to="get status">

           <timer duedate="2 minutes"/>

      </transition>


Please remember that when you use timer in your process then while testing it there are two ways of triggering it:
1. use ManagmentService.executeJob

     Job job = managementService.createJobQuery()
 
      .processInstanceId(processInstance.getId())
 
      .uniqueResult();
 
    managementService.executeJob(job.getId());

2. enable job executor in your jbpm.cfg.xml (uncomment <import resource="jbpm.jobexecutor.cfg.xml" />)
and remember to put the main thread to sleep to be able to wait for job executor to trigger your timer.

HTH
Maciej

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/545157#545157]

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/20100527/97c5c16e/attachment-0001.html 


More information about the jboss-user mailing list