JBoss Community

Re: Execution Timeout on and

created by Jim Hill in jBPM - View the full discussion

I am having the same problem and was going to present a post similar to yours.  In my case I'm running a custom java node that implements

ExternalActivityBehaviour to wait for a messge.  The validation is specifying that one of the following is missing:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

cvc-complex-type.2.4.a: Invalid content was found starting with element 'timer'.
One of '{"http://jbpm.org/4.4/jpdl":description,
         "http://jbpm.org/4.4/jpdl":event-listener,
         "http://jbpm.org/4.4/jpdl":hql,
         "http://jbpm.org/4.4/jpdl":sql,
         "http://jbpm.org/4.4/jpdl":java,
         "http://jbpm.org/4.4/jpdl":assign,
         "http://jbpm.org/4.4/jpdl":script,
         "http://jbpm.org/4.4/jpdl":mail}' is expected.



I'm experiencing this problem in  JBPM 4.4.  Can anyone help Sameeh and I out here?  This is what my jpdl looks like:

  <group name="SendTHGroup">
    <start>
      <transition name="to WaitForTH"
                  to="WaitForTH"/>
    </start>
    <custom name="WaitForTH"
            class="...WaitForMessageActivity">
      <transition name="to DidUserSendTH"
                  to="DidUserSendTH"/>
    </custom>
    <decision name="DidUserSendTH">
      <transition name="TH Sent"
           to="SendTHDone">
        <condition expr="#{className==&quot;THObject&quot;}"/>
      </transition>
      <!-- If we did not receive the TH object, keep waiting -->
      <transition name="Keep waiting"
                  to="SendTHDone"/>
    </decision>
    <end name="SendTHDone" />
 
    <transition name="toLaunchEDForm"
                to="LaunchEDForm"/>
    <transition name="timeout1" to="NotifyUserOfTimeout">
      <timer duedate="5 minutes" />
    </transition>
  </group>         

Thanks for any help you can provide.

Jim

Reply to this message by going to Community

Start a new discussion in jBPM at Community