[jboss-user] [JBoss jBPM] - Re: Timers in jBPL

juergen_lampe do-not-reply at jboss.com
Wed Oct 1 08:49:21 EDT 2008


I think so. It should be started via the web.xml entry:
    <!-- Job executor launcher (begin) -->
  |     <listener>
  |         <description>
  |             Starts the job executor on servlet context initialization and stops it on 
  |             servlet context destruction.
  |         </description>
  |         <listener-class>org.jbpm.web.JobExecutorLauncher</listener-class>
  |     </listener>
  |     <!-- Job executor launcher (end) -->
  | 

Meanwhile I played around a bit:
1) changed the timer to
         <timer name='reminder' 
  |                 duedate='2 minutes' 
  |                 transition='ex1' >
  |              <script>
  |                System.out.println("Timer fired "+node);
  |                Token.signal();
  |              </script>
  |          </timer>
  | 
got the output "Timer fired State(warte 1)" but nothing else.

2) changed the script to 
             <script>
  |                System.out.println("Timer fired "+node);
  |                executionContext.getProcessInstance().signal();
  |              </script>
  | 
found the server locked in endless printing "Timer fired State(warte 1)"

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

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



More information about the jboss-user mailing list