cancel
Showing results for 
Search instead for 
Did you mean: 

I am not able to execute Service task if it is connected to all outgoing nodes of parallel gateway, can anybody help me to solve it or suggest me possibility to execute Service task ? here i have attache my workflow diagram.

nprajapati
Champ on-the-rise
Champ on-the-rise

hi,

if i attach user task then it will execue but for service task not .

reply me as possible

3 REPLIES 3

thuynh
Star Contributor
Star Contributor

Hi NImesh Prajapati ,

I tried to unit test your bpmn diagram on my sandbox and all three services tasks were executed successfully. 

How did you confirm that service tasks were not executed? 

Do you have a unit test to share to show everybody how yours is failing?

Thank you,

Thong Huynh

nprajapati
Champ on-the-rise
Champ on-the-rise

HI Thong,

Appreciate your answer.

here i have attached  my bpmn xml which i want to execute.

here Task 2 which is connectd  to another node of parallel gateway which is not getting executed. can you please give me suggestion ?

<?xml version='1.0' encoding='UTF-8'?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<process id="process_7495687" name="descipline 2 status" isExecutable="true">
<documentation>descipline 2 status</documentation>
<startEvent id="sid-E96B49EC-9561-41E9-AC59-627BE682FFFE" name="Start"/>
<userTask id="sid-88BD871B-F382-4DAB-A6E8-2FCD2CD25056" name="DS2 " activiti:assignee="U:2" activiti:dueDate="P1D" activiti:formKey="6:true"/>
<sequenceFlow id="sid-6099C1E5-E0B4-4B73-83FF-159E0A1BB50E" sourceRef="sid-E96B49EC-9561-41E9-AC59-627BE682FFFE" targetRef="sid-88BD871B-F382-4DAB-A6E8-2FCD2CD25056"/>
<sequenceFlow id="sid-B0C7B5BA-6383-4036-810E-4088734019B8" sourceRef="sid-88BD871B-F382-4DAB-A6E8-2FCD2CD25056" targetRef="sid-9698F1C0-D1C7-481C-BFD7-E70EF9F5BCD0"/>
<parallelGateway id="sid-9698F1C0-D1C7-481C-BFD7-E70EF9F5BCD0" name="PG"/>
<sequenceFlow id="sid-03C39541-A79C-4BC8-B7E8-7AA04F524CEB" sourceRef="sid-9698F1C0-D1C7-481C-BFD7-E70EF9F5BCD0" targetRef="sid-4EC6DDA6-76B8-4406-B72F-3896457E3865"/>
<sequenceFlow id="sid-AAC483F6-27A6-4E48-8554-A2013914F5B0" sourceRef="sid-9698F1C0-D1C7-481C-BFD7-E70EF9F5BCD0" targetRef="sid-C3BC9859-4B26-4BD0-9047-8CF467D8BCA5"/>
<endEvent id="sid-EEF6806B-A782-4FF4-8288-F585CEBBAE07" name="End"/>
<sequenceFlow id="sid-1EBBD1AA-51CE-4797-B653-FE75D9001D14" sourceRef="sid-4EC6DDA6-76B8-4406-B72F-3896457E3865" targetRef="sid-EEF6806B-A782-4FF4-8288-F585CEBBAE07"/>
<endEvent id="sid-4657A46B-0DA6-41F1-BA2B-73283BDFA697" name="End"/>
<sequenceFlow id="sid-31DE2C8B-6674-42DF-9862-36C5572EEE50" sourceRef="sid-C3BC9859-4B26-4BD0-9047-8CF467D8BCA5" targetRef="sid-4657A46B-0DA6-41F1-BA2B-73283BDFA697"/>
<serviceTask id="sid-C3BC9859-4B26-4BD0-9047-8CF467D8BCA5" name="Task 2" activiti:async="true" activiti:class="com.asite.wom.action.delegate.DocStatusChangeDelegate">
<extensionElements>
<activiti:field name="actionConfigId">
<activiti:string><![CDATA[21007]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<serviceTask id="sid-4EC6DDA6-76B8-4406-B72F-3896457E3865" name="Task1" activiti:async="true" activiti:class="com.asite.wom.action.delegate.DistributeDocDelegate">
<extensionElements>
<activiti:field name="actionConfigId">
<activiti:string><![CDATA[21006]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_process_7495687">
<bpmndi:BPMNPlane bpmnElement="process_7495687" id="BPMNPlane_process_7495687">
<bpmndi:BPMNShape bpmnElement="sid-E96B49EC-9561-41E9-AC59-627BE682FFFE" id="BPMNShape_sid-E96B49EC-9561-41E9-AC59-627BE682FFFE">
<omgdc:Bounds height="30.0" width="30.0" x="97.5" y="115.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-88BD871B-F382-4DAB-A6E8-2FCD2CD25056" id="BPMNShape_sid-88BD871B-F382-4DAB-A6E8-2FCD2CD25056">
<omgdc:Bounds height="80.0" width="100.0" x="172.5" y="90.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-9698F1C0-D1C7-481C-BFD7-E70EF9F5BCD0" id="BPMNShape_sid-9698F1C0-D1C7-481C-BFD7-E70EF9F5BCD0">
<omgdc:Bounds height="40.0" width="40.0" x="333.0" y="110.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-EEF6806B-A782-4FF4-8288-F585CEBBAE07" id="BPMNShape_sid-EEF6806B-A782-4FF4-8288-F585CEBBAE07">
<omgdc:Bounds height="28.0" width="28.0" x="448.0" y="36.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-4657A46B-0DA6-41F1-BA2B-73283BDFA697" id="BPMNShape_sid-4657A46B-0DA6-41F1-BA2B-73283BDFA697">
<omgdc:Bounds height="28.0" width="28.0" x="448.0" y="226.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-C3BC9859-4B26-4BD0-9047-8CF467D8BCA5" id="BPMNShape_sid-C3BC9859-4B26-4BD0-9047-8CF467D8BCA5">
<omgdc:Bounds height="80.0" width="100.0" x="303.0" y="200.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-4EC6DDA6-76B8-4406-B72F-3896457E3865" id="BPMNShape_sid-4EC6DDA6-76B8-4406-B72F-3896457E3865">
<omgdc:Bounds height="80.0" width="100.0" x="303.0" y="10.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sid-AAC483F6-27A6-4E48-8554-A2013914F5B0" id="BPMNEdge_sid-AAC483F6-27A6-4E48-8554-A2013914F5B0">
<omgdi:waypoint x="353.41284403669727" y="149.58715596330276"/>
<omgdi:waypoint x="353.1826484018265" y="200.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-B0C7B5BA-6383-4036-810E-4088734019B8" id="BPMNEdge_sid-B0C7B5BA-6383-4036-810E-4088734019B8">
<omgdi:waypoint x="272.5" y="130.0"/>
<omgdi:waypoint x="302.75" y="130.0"/>
<omgdi:waypoint x="302.75" y="134.0"/>
<omgdi:waypoint x="337.0" y="134.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-6099C1E5-E0B4-4B73-83FF-159E0A1BB50E" id="BPMNEdge_sid-6099C1E5-E0B4-4B73-83FF-159E0A1BB50E">
<omgdi:waypoint x="127.5" y="130.0"/>
<omgdi:waypoint x="172.5" y="130.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-1EBBD1AA-51CE-4797-B653-FE75D9001D14" id="BPMNEdge_sid-1EBBD1AA-51CE-4797-B653-FE75D9001D14">
<omgdi:waypoint x="403.0" y="50.0"/>
<omgdi:waypoint x="448.0" y="50.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-31DE2C8B-6674-42DF-9862-36C5572EEE50" id="BPMNEdge_sid-31DE2C8B-6674-42DF-9862-36C5572EEE50">
<omgdi:waypoint x="403.0" y="240.0"/>
<omgdi:waypoint x="448.0" y="240.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-03C39541-A79C-4BC8-B7E8-7AA04F524CEB" id="BPMNEdge_sid-03C39541-A79C-4BC8-B7E8-7AA04F524CEB">
<omgdi:waypoint x="353.375" y="110.375"/>
<omgdi:waypoint x="353.24844720496895" y="90.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>

Hi NImesh Prajapati 

Copying the entire process definition xml does not help. Please provide a unit test. 

If you are not sure how to write a unit test, have a look at this guideline  

Thank you,

Thong Huynh