[jboss-user] [jBPM] - Boundary event jbpm5.0 problem

devora Mar.... do-not-reply at jboss.com
Thu Jul 14 09:02:49 EDT 2011


devora Mar.... [http://community.jboss.org/people/devora] created the discussion

"Boundary event jbpm5.0 problem"

To view the discussion, visit: http://community.jboss.org/message/615176#615176

--------------------------------------------------------------
         Hi!

I followed TimerBoundaryEvent example and wrote the following code:


<process processType="Private" isExecutable="true" id="test" name="test.b" >


    <!-- nodes -->
    <boundaryEvent id="_5" name="TimerEvent" attachedToRef="_8" >
      <timerEventDefinition>
        <timeCycle xs:type="tFormalExpression">10ms</timeCycle>
      </timerEventDefinition>
    </boundaryEvent>
    <scriptTask id="_6" name="Script" scriptFormat="http://www.java.com/java" >
      <script>System.out.println("Timer");</script>
    </scriptTask>
    <endEvent id="_7" name="End2" />
    <subProcess id="_8" name="Sub-Process"  >
    <!-- nodes -->
    <startEvent id="_8-1" name="Start" />
    <scriptTask id="_8-2" name="Script" scriptFormat="http://www.java.com/java" >
      <script>System.out.println("sleep");
java.lang.Thread.sleep(15000);
</script>
    </scriptTask>
    <scriptTask id="_8-3" name="Script" scriptFormat="http://www.java.com/java" >
      <script>System.out.println("UP");</script>
    </scriptTask>
    <endEvent id="_8-4" name="EscalationEvent" />
    <!-- connections -->
    <sequenceFlow id="_8-1-_8-2" sourceRef="_8-1" targetRef="_8-2" />
    <sequenceFlow id="_8-2-_8-3" sourceRef="_8-2" targetRef="_8-3" />
    <sequenceFlow id="_8-3-_8-4" sourceRef="_8-3" targetRef="_8-4" />
    </subProcess>
    <startEvent id="_9" name="Start" />
    <endEvent id="_10" name="End" >
        <terminateEventDefinition/>
    </endEvent>


    <!-- connections -->
    <sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6" />
    <sequenceFlow id="_6-_7" sourceRef="_6" targetRef="_7" />
    <sequenceFlow id="_9-_8" sourceRef="_9" targetRef="_8" />
    <sequenceFlow id="_8-_10" sourceRef="_8" targetRef="_10" />


  </process>



See the attached picture as well.

However, the timer event is not being executed!

I see that only the system.out of System.out.println("UP"); is being invoked - which has before thread sleep of 15 ms, and the timer which has 10ms is not being invoked as all!

What's wrong?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/615176#615176]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110714/6620a69a/attachment.html 


More information about the jboss-user mailing list