[jboss-user] [jBPM Users] - Action associated with timer is not invoked

jbosspnet do-not-reply at jboss.com
Mon Oct 26 09:50:40 EDT 2009


Hi, I am using Jbpm 3.2.3 on Jboss 4.2.3.GA. 

I have the following simple process:

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition  xmlns=""  name="sample">
  | 	<start-state name="start">
  | 		<transition to="state"></transition>
  | 	</start-state>
  | 
  | 	<state name="state">
  | 		<timer name="two-seconds" duedate="2 seconds" transition="to-decision">
  | 			<action name="handler" class="sample.TimerHandler"></action>
  | 		</timer>
  | 		<transition to="decision" name="to-decision"></transition>
  | 	</state>
  | 
  | 	<decision name="decision">
  | 		<handler class="sample.MyDecisionHandler"></handler>
  | 		<transition to="end" name="OK"></transition>
  | 		<transition to="state" name="KO"></transition>
  | 	</decision>
  | 
  | 	<end-state name="end"></end-state>
  | 
  | </process-definition>
  | 
The idea is that I perform a check in TimerHandler every 2 seconds, then I set some variable that MyDecisionHandler will use to take "OK" or "KO" transition.

I have deployed the process archive with the two classes (TimerHandler and MyDecisionHandler) and then I use jbpm console to signal process.
When I enter to "state" state and I click signal, the class action associated to the timer (sample.TimerHandler) will never be called.

Why? I have to do other things to creater timer or is a configuration problem in jbpm.cfg.xml? I have added the entry:

<bean   name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor" singelton="true" />

and jbpm-enterprise.jar is deployed in Jboss.

Regards.


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

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



More information about the jboss-user mailing list