1 Reply Latest reply on Mar 14, 2006 7:11 PM by ys zhang

    JBPM timer

    ys zhang Newbie

      hi, I am new to JBPM.

      I need create a timer, and here is my process defination.

      <start-state name="start">







      </start-state>










      send email to inform a valid package arrived.



      <end-state name="end"></end-state>

      I start a scheduler servlet through web.xml . but seems my action handles never got called. I found there are some timer created in JBPM_TIMER table.

      please give me a help.

      Thanks,
      ys

        • 1. Re: JBPM timer
          ys zhang Newbie

           

          "danceinwind" wrote:
          hi, I am new to JBPM.

          I need create a timer, and here is my process defination.

          <start-state name="start">
           <task swimlane="productcreator">
           <controller>
           <variable name="product_id" />
           <variable name="product_state" />
           </controller>
           </task>
           <transition name="test" to="NotifyingTest1"></transition>
           </start-state>
           <state name="NotifyingTest1">
           <timer name='reminder'
           duedate='60 seconds'
           repeat='10 seconds'
           transition='InformPackageArrival' >
           <action class='com.foo.mypackage.RunNotifyingTestHandler' />
          
           </timer>
           <transition name="" to="end"></transition>
           </state>
          
           <node name="InformPackageArrival">
           <action class="com.foo.mypackage.RunPackageArrivalHandler">
           <msg>send email to inform a valid package arrived.</msg>
           </action>
           <transition name="to_End" to="end" />
           </node>
           <end-state name="end"></end-state>

          I start a scheduler servlet through web.xml . but seems my action handles never got called. I found there are some timer created in JBPM_TIMER table.

          please give me a help.

          Thanks,
          ys
          [