AnsweredAssumed Answered

Recieve Task is not blocking execution

Question asked by piyush.kaizen on Oct 21, 2016
Latest reply on Oct 21, 2016 by piyush.kaizen
Consider the following process definition

<process id="Timer1" name="Timer1" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
    <scriptTask id="scripttask1" name="Script Task" scriptFormat="javascript" activiti:autoStoreVariables="false">
      <script>java.lang.System.out.println("Testing");</script>
    </scriptTask>
    <sequenceFlow id="flow1003" sourceRef="scripttask1" targetRef="endevent1"></sequenceFlow>
    <receiveTask id="waitState" name="wait"></receiveTask>
    <sequenceFlow id="flow1004" sourceRef="startevent1" targetRef="waitState"></sequenceFlow>
    <sequenceFlow id="flow1005" sourceRef="waitState" targetRef="scripttask1"></sequenceFlow>
</process>

Why the receive task is not blocking execution ?
Script Task is getting executed immediately.

Outcomes