JBoss Community

JBPM 4.4 timer will not fire

created by Jim Hill in jBPM - View the full discussion

I found and verified that the jbpm.cfg.xml file imports the resource="jbpm.jobexecutor.cfg.xml" resource.  I am however still not seeing my timer kick off.  I am using this inside a group comprised mostly of custom nodes.  At what point do I write this up as a bug?  I am running this inside Eclipse as a junit test.  Am I missing something?  In my junit test I verify that I am at the WaitForMessageActivity node and then have the thread sleep for 30 seconds.  I am expecting the trigger to fire.  Is this a flawed expectation?  Any help would be appreciated.

 

<process key="TH" name="TH" version="1" xmlns="http://jbpm.org/4.4/jpdl">
  <start name="start">
    <transition name="to LaunchTHForm"
                to="LaunchTHForm"/>
  </start>
 
  <java name="LaunchTHForm" class="mil.army.sc4.bpm.THthread.THSupport" method="launchTHForm">
    <transition name="to SendTHGroup" to="SendTHGroup"/>
  </java>
 
  <group name="SendTHGroup">
    <start>
      <transition name="to WaitForTH" to="WaitForTH"/>
    </start>
    <custom name="WaitForTH" class="###.####.###.bpm.WaitForMessageActivity">
      <transition name="to DidUserSendTH" to="DidUserSendTH"/>
    </custom>
    <decision name="DidUserSendTH">
      <transition name="TH Sent" to="SendTHDone">
        <condition expr="#{className==&quot;THObject&quot;}"/>
      </transition>
      <transition name="Keep waiting" to="WaitForTH"/>
    </decision>
    <end name="SendTHDone" />

    <transition name="toLaunchEntityDataForm" to="LaunchEntityDataForm"/>
             
    <!--  Nothing happens when I try this transition with embeded timer -->
    <transition name="timeout1" to="NotifyUserOfTimeout">
      <timer duedate="20 seconds" />
    </transition>
<!-- This approach does not work either.
    <timer name="timeout1" duedate="20 seconds" transition="NotifyUserOfTimeout"/>
-->
  </group>

   

Reply to this message by going to Community

Start a new discussion in jBPM at Community