2 Replies Latest reply on Nov 9, 2010 9:31 AM by parvathy

    jbpm4.4 timer triggering problem

    parvathy

      hi,

        I have a jpdl file with two timer in it...but only one timer is being fired..the second timer is not working..

       

      <?xml version="1.0" encoding="UTF-8"?>

      <process name="TaskNotification" xmlns="http://jbpm.org/4.4/jpdl">

        <start g="20,20,48,48">
          <transition name="to_review" to="review"></transition>
        </start>

      <task name="review" assignee="#{order.owner}">

      <transition name="to_secondTask" to="secondTask">
      <timer duedate="2 minutes"/>

      </transition>

      </task>

      <task name="secondTask" assignee="paru"
          g="96,16,127,52">
        <timer duedate="2 minutes">   
        <event-listener class="com.sis.crm.sca.launch.task.ActionJava" />
        </timer> 
      <transition to="wait"/>
        </task>

        <state name="wait" g="255,16,88,52"/>

      </process>

       

      i have imported <import resource="jbpm.jobexecutor.cfg.xml" /> this in my jbpm.cfg.xml file...

       

      the first timer inside the transition is working fine and itz going to the second task node..but the timer inside the second task is not firing...so is the eventlistener in it...could anyone tell me the possible reason for this...

       

      Thanking you

      Parvathy J A

        • 1. Re: jbpm4.4 timer triggering problem
          mwohlf

          try this:

           

          <on event="timeout">
                <timer duedate="20 minutes" />
                <event-listener class="org.jbpm.examples.timer.repeat.Escalate" />
          </on>

          • 2. Re: jbpm4.4 timer triggering problem
            parvathy

            yaa...this works fine...but the one which i did is not working(the above code)...actually my requirement is tat i have a process  which has a start node and then a state node and an end node....i have to keep the state node waiting until the timer expires..could anyone tell me where should i specify the timer to keep the state node waiting??does the transition in start node support timer???