Recieve Task is not blocking execution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2016 06:15 AM
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.
<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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2016 06:18 AM
<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>
<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>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 10:07 PM
It is working fine for me and the process is correctly waiting at receive task when I test using activiti-engine-5.21.0
Could you please create a unit test and upload it here if it is still happening for you?
Cheers,
Ciju
Could you please create a unit test and upload it here if it is still happening for you?
Cheers,
Ciju
