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

reply from Maciej Swiderski in jBPM - View the full discussion



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"/>



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()

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.




Reply to this message by going to Community

Start a new discussion in jBPM at Community