工作量并行网关不执行

提问 未结 56
楊永強
楊永強 VIP2 2019-05-15 22:23:54
悬赏:20积分 收藏
产品:ani 版本:ani
并行网关报错,提交申请后我的申请无法打开 ActTaskService /** * 查询流程实例状态 * @param processInstanceId * @return * @throws Exception */ public String queryProcessState 这里报空指针异常 //执行实例 List<Task> tasks = taskService.createTaskQuery().processInstanceId(pi.getId()).active().orderByTaskCreateTime().desc().listPage(0, 1); task查到为空 img[/userfiles/fly/a3b99bb9c40d460fba7c72e8c2209b9e/files/1557930082472.] <?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" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="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/processdef"> <process id="conproceOne" name="经营一部合同审签" isExecutable="true"> <startEvent id="sid-F5FB1471-3313-461E-9E4D-2338B57B1CA6" name="开始" activiti:initiator="applyUserId" activiti:formKey="/activiti/contractProcess/form/add"></startEvent> <userTask id="sid-29F5ADEF-8026-4D81-9C59-FA5E640046F7" name="经理评审" activiti:candidateGroups="PS1" activiti:formKey="/activiti/contractProcess/form/audit"></userTask> <userTask id="sid-FA7F7C66-D16C-4B8A-AC89-25A9D6E33889" name="财务评审" activiti:candidateGroups="PS2" activiti:formKey="/activiti/contractProcess/form/audit"></userTask> <parallelGateway id="sid-F77A4570-B299-43CD-A7F7-D6D685A64A32"></parallelGateway> <sequenceFlow id="sid-DFB0857C-8851-459C-B5C2-E42AA85D3011" sourceRef="sid-F5FB1471-3313-461E-9E4D-2338B57B1CA6" targetRef="sid-F77A4570-B299-43CD-A7F7-D6D685A64A32"></sequenceFlow> <sequenceFlow id="sid-2E3EC472-51BD-4A93-A60D-04A7F426EA80" sourceRef="sid-F77A4570-B299-43CD-A7F7-D6D685A64A32" targetRef="sid-29F5ADEF-8026-4D81-9C59-FA5E640046F7"></sequenceFlow> <sequenceFlow id="sid-ACCA783B-FDAE-498C-AE0F-322D1C8A4CEC" sourceRef="sid-F77A4570-B299-43CD-A7F7-D6D685A64A32" targetRef="sid-FA7F7C66-D16C-4B8A-AC89-25A9D6E33889"></sequenceFlow> <exclusiveGateway id="sid-16E2877D-7305-49FB-96C5-CAE177A29278"></exclusiveGateway> <exclusiveGateway id="sid-53DE977E-FD74-47DA-9F19-7AC43B756443"></exclusiveGateway> <sequenceFlow id="sid-1398ECCB-6D36-4B48-BF56-49B51D945253" sourceRef="sid-FA7F7C66-D16C-4B8A-AC89-25A9D6E33889" targetRef="sid-53DE977E-FD74-47DA-9F19-7AC43B756443"></sequenceFlow> <sequenceFlow id="sid-7BE39C98-9F15-47BB-A844-BE4D6D71DC84" sourceRef="sid-29F5ADEF-8026-4D81-9C59-FA5E640046F7" targetRef="sid-16E2877D-7305-49FB-96C5-CAE177A29278"></sequenceFlow> <parallelGateway id="sid-78C83637-ADB2-4BB7-8A38-D5529D4F0B07"></parallelGateway> <userTask id="sid-F43968F0-F4DF-49D0-85AD-C857A070D2B9" name="审核" activiti:candidateGroups="SP2" activiti:formKey="/activiti/contractProcess/form/audit"></userTask> <userTask id="sid-BE6F3857-20A8-486D-8DD5-9DB6FB1FD478" name="审批" activiti:candidateGroups="manager" activiti:formKey="/activiti/contractProcess/form/audit"></userTask> <exclusiveGateway id="sid-0CCCA3A4-A7AD-4CE5-890A-01024AA8DC5B"></exclusiveGateway> <endEvent id="sid-FFF1288F-424A-42E4-9CD5-4AF7CE3478F1" name="结束"></endEvent> <sequenceFlow id="sid-D34F4F70-87F2-4EC4-A5D7-070D8635CAA8" sourceRef="sid-F43968F0-F4DF-49D0-85AD-C857A070D2B9" targetRef="sid-0CCCA3A4-A7AD-4CE5-890A-01024AA8DC5B"></sequenceFlow> <userTask id="sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F" name="修改合同" activiti:assignee="${applyUserId}" activiti:formKey="/activiti/contractProcess/form/edit"></userTask> <exclusiveGateway id="sid-214AA8A4-762A-42AD-8843-5546C4EDAC6F"></exclusiveGateway> <sequenceFlow id="sid-A9111FCE-DC83-4846-B87C-09F3DC5C66EA" sourceRef="sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F" targetRef="sid-214AA8A4-762A-42AD-8843-5546C4EDAC6F"></sequenceFlow> <exclusiveGateway id="sid-FF8829A7-FF76-4A58-9415-6C9F82482865"></exclusiveGateway> <sequenceFlow id="sid-3D104B09-01D7-4A06-96B2-00BDB837C3D6" sourceRef="sid-BE6F3857-20A8-486D-8DD5-9DB6FB1FD478" targetRef="sid-FF8829A7-FF76-4A58-9415-6C9F82482865"></sequenceFlow> <sequenceFlow id="sid-7F050FAF-1BA3-4625-A5B3-948EDB7181F3" name="同意" sourceRef="sid-FF8829A7-FF76-4A58-9415-6C9F82482865" targetRef="sid-FFF1288F-424A-42E4-9CD5-4AF7CE3478F1"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-83F44461-D88B-454F-B85C-B7CD7A90DE74" name="驳回" sourceRef="sid-FF8829A7-FF76-4A58-9415-6C9F82482865" targetRef="sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-7085EC70-4D28-492B-A7DD-B7CE390BC02E" name="驳回" sourceRef="sid-0CCCA3A4-A7AD-4CE5-890A-01024AA8DC5B" targetRef="sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-626E7028-8C9B-4DAE-939D-E9529E0B6FCD" name="同意" sourceRef="sid-0CCCA3A4-A7AD-4CE5-890A-01024AA8DC5B" targetRef="sid-BE6F3857-20A8-486D-8DD5-9DB6FB1FD478"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-E8F0F5A4-DB38-458F-B944-DC3649311EEC" sourceRef="sid-78C83637-ADB2-4BB7-8A38-D5529D4F0B07" targetRef="sid-F43968F0-F4DF-49D0-85AD-C857A070D2B9"></sequenceFlow> <sequenceFlow id="sid-E507778D-C393-4E1F-B043-CC1ED05F64EB" name="同意" sourceRef="sid-53DE977E-FD74-47DA-9F19-7AC43B756443" targetRef="sid-78C83637-ADB2-4BB7-8A38-D5529D4F0B07"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-12C44CD9-E0C3-4C70-9955-303F524051AB" name="同意" sourceRef="sid-16E2877D-7305-49FB-96C5-CAE177A29278" targetRef="sid-78C83637-ADB2-4BB7-8A38-D5529D4F0B07"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-83F0CC76-485D-4ABD-AB0B-64B540535C20" name="驳回" sourceRef="sid-16E2877D-7305-49FB-96C5-CAE177A29278" targetRef="sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-0E85FB46-8BC1-411A-8C1D-4F7189706D6A" name="驳回" sourceRef="sid-53DE977E-FD74-47DA-9F19-7AC43B756443" targetRef="sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-214719D3-E21B-4553-97AD-84F85AD17B70" name="重新申请" sourceRef="sid-214AA8A4-762A-42AD-8843-5546C4EDAC6F" targetRef="sid-F77A4570-B299-43CD-A7F7-D6D685A64A32"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${reapply}]]></conditionExpression> </sequenceFlow> <sequenceFlow id="sid-025009D2-E2D9-4CF2-8F96-EA5DA264D686" name="撤销" sourceRef="sid-214AA8A4-762A-42AD-8843-5546C4EDAC6F" targetRef="sid-FFF1288F-424A-42E4-9CD5-4AF7CE3478F1"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!reapply}]]></conditionExpression> </sequenceFlow> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_conproceOne"> <bpmndi:BPMNPlane bpmnElement="conproceOne" id="BPMNPlane_conproceOne"> <bpmndi:BPMNShape bpmnElement="sid-F5FB1471-3313-461E-9E4D-2338B57B1CA6" id="BPMNShape_sid-F5FB1471-3313-461E-9E4D-2338B57B1CA6"> <omgdc:Bounds height="30.0" width="30.0" x="39.34375" y="264.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-29F5ADEF-8026-4D81-9C59-FA5E640046F7" id="BPMNShape_sid-29F5ADEF-8026-4D81-9C59-FA5E640046F7"> <omgdc:Bounds height="80.0" width="100.0" x="240.0" y="105.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-FA7F7C66-D16C-4B8A-AC89-25A9D6E33889" id="BPMNShape_sid-FA7F7C66-D16C-4B8A-AC89-25A9D6E33889"> <omgdc:Bounds height="80.0" width="100.0" x="240.0" y="240.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-F77A4570-B299-43CD-A7F7-D6D685A64A32" id="BPMNShape_sid-F77A4570-B299-43CD-A7F7-D6D685A64A32"> <omgdc:Bounds height="40.0" width="40.0" x="110.34375" y="259.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-16E2877D-7305-49FB-96C5-CAE177A29278" id="BPMNShape_sid-16E2877D-7305-49FB-96C5-CAE177A29278"> <omgdc:Bounds height="40.0" width="40.0" x="480.0" y="125.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-53DE977E-FD74-47DA-9F19-7AC43B756443" id="BPMNShape_sid-53DE977E-FD74-47DA-9F19-7AC43B756443"> <omgdc:Bounds height="40.0" width="40.0" x="420.0" y="260.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-78C83637-ADB2-4BB7-8A38-D5529D4F0B07" id="BPMNShape_sid-78C83637-ADB2-4BB7-8A38-D5529D4F0B07"> <omgdc:Bounds height="40.0" width="40.0" x="600.0" y="125.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-F43968F0-F4DF-49D0-85AD-C857A070D2B9" id="BPMNShape_sid-F43968F0-F4DF-49D0-85AD-C857A070D2B9"> <omgdc:Bounds height="80.0" width="100.0" x="720.0" y="105.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-BE6F3857-20A8-486D-8DD5-9DB6FB1FD478" id="BPMNShape_sid-BE6F3857-20A8-486D-8DD5-9DB6FB1FD478"> <omgdc:Bounds height="80.0" width="100.0" x="870.0" y="239.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-0CCCA3A4-A7AD-4CE5-890A-01024AA8DC5B" id="BPMNShape_sid-0CCCA3A4-A7AD-4CE5-890A-01024AA8DC5B"> <omgdc:Bounds height="40.0" width="40.0" x="750.0" y="259.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-FFF1288F-424A-42E4-9CD5-4AF7CE3478F1" id="BPMNShape_sid-FFF1288F-424A-42E4-9CD5-4AF7CE3478F1"> <omgdc:Bounds height="28.0" width="28.0" x="1110.0" y="516.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F" id="BPMNShape_sid-1CE8C5DF-B49F-4553-B509-DF66AA4CA83F"> <omgdc:Bounds height="80.0" width="100.0" x="525.0" y="360.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-214AA8A4-762A-42AD-8843-5546C4EDAC6F" id="BPMNShape_sid-214AA8A4-762A-42AD-8843-5546C4EDAC6F"> <omgdc:Bounds height="40.0" width="40.0" x="555.0" y="510.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="sid-FF8829A7-FF76-4A58-9415-6C9F82482865" id="BPMNShape_sid-FF8829A7-FF76-4A58-9415-6C9F82482865"> <omgdc:Bounds height="40.0" width="40.0" x="1050.0" y="260.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="sid-E507778D-C393-4E1F-B043-CC1ED05F64EB" id="BPMNEdge_sid-E507778D-C393-4E1F-B043-CC1ED05F64EB"> <omgdi:waypoint x="459.5" y="280.5"></omgdi:waypoint> <omgdi:waypoint x="620.0" y="280.5"></omgdi:waypoint> <omgdi:waypoint x="620.0" y="165.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-D34F4F70-87F2-4EC4-A5D7-070D8635CAA8" id="BPMNEdge_sid-D34F4F70-87F2-4EC4-A5D7-070D8635CAA8"> <omgdi:waypoint x="770.0" y="185.0"></omgdi:waypoint> <omgdi:waypoint x="770.0" y="259.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-7BE39C98-9F15-47BB-A844-BE4D6D71DC84" id="BPMNEdge_sid-7BE39C98-9F15-47BB-A844-BE4D6D71DC84"> <omgdi:waypoint x="340.0" y="145.0"></omgdi:waypoint> <omgdi:waypoint x="480.0" y="145.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-ACCA783B-FDAE-498C-AE0F-322D1C8A4CEC" id="BPMNEdge_sid-ACCA783B-FDAE-498C-AE0F-322D1C8A4CEC"> <omgdi:waypoint x="149.7842471618712" y="279.55950283812876"></omgdi:waypoint> <omgdi:waypoint x="240.0" y="279.84292165717653"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-214719D3-E21B-4553-97AD-84F85AD17B70" id="BPMNEdge_sid-214719D3-E21B-4553-97AD-84F85AD17B70"> <omgdi:waypoint x="562.0812138339389" y="522.9187861660611"></omgdi:waypoint> <omgdi:waypoint x="143.12354634862962" y="286.2202036513704"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-025009D2-E2D9-4CF2-8F96-EA5DA264D686" id="BPMNEdge_sid-025009D2-E2D9-4CF2-8F96-EA5DA264D686"> <omgdi:waypoint x="594.5173357664233" y="530.4826642335767"></omgdi:waypoint> <omgdi:waypoint x="1110.000005816805" y="530.0127620730932"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-7F050FAF-1BA3-4625-A5B3-948EDB7181F3" id="BPMNEdge_sid-7F050FAF-1BA3-4625-A5B3-948EDB7181F3"> <omgdi:waypoint x="1089.5" y="280.5"></omgdi:waypoint> <omgdi:waypoint x="1124.0" y="280.5"></omgdi:waypoint> <omgdi:waypoint x="1124.0" y="516.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-83F0CC76-485D-4ABD-AB0B-64B540535C20" id="BPMNEdge_sid-83F0CC76-485D-4ABD-AB0B-64B540535C20"> <omgdi:waypoint x="504.8024316109422" y="160.19756838905775"></omgdi:waypoint> <omgdi:waypoint x="563.2907662082515" y="360.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-0E85FB46-8BC1-411A-8C1D-4F7189706D6A" id="BPMNEdge_sid-0E85FB46-8BC1-411A-8C1D-4F7189706D6A"> <omgdi:waypoint x="450.56102362204723" y="289.43897637795277"></omgdi:waypoint> <omgdi:waypoint x="529.979079497908" y="360.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-83F44461-D88B-454F-B85C-B7CD7A90DE74" id="BPMNEdge_sid-83F44461-D88B-454F-B85C-B7CD7A90DE74"> <omgdi:waypoint x="1070.5" y="299.5"></omgdi:waypoint> <omgdi:waypoint x="1070.5" y="400.0"></omgdi:waypoint> <omgdi:waypoint x="625.0" y="400.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-626E7028-8C9B-4DAE-939D-E9529E0B6FCD" id="BPMNEdge_sid-626E7028-8C9B-4DAE-939D-E9529E0B6FCD"> <omgdi:waypoint x="789.5637583892617" y="279.43624161073825"></omgdi:waypoint> <omgdi:waypoint x="870.0" y="279.16722408026754"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-A9111FCE-DC83-4846-B87C-09F3DC5C66EA" id="BPMNEdge_sid-A9111FCE-DC83-4846-B87C-09F3DC5C66EA"> <omgdi:waypoint x="575.0" y="440.0"></omgdi:waypoint> <omgdi:waypoint x="575.0" y="510.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-DFB0857C-8851-459C-B5C2-E42AA85D3011" id="BPMNEdge_sid-DFB0857C-8851-459C-B5C2-E42AA85D3011"> <omgdi:waypoint x="69.34375" y="279.0"></omgdi:waypoint> <omgdi:waypoint x="110.34375" y="279.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-12C44CD9-E0C3-4C70-9955-303F524051AB" id="BPMNEdge_sid-12C44CD9-E0C3-4C70-9955-303F524051AB"> <omgdi:waypoint x="519.5798319327731" y="145.42016806722688"></omgdi:waypoint> <omgdi:waypoint x="600.0833333333334" y="145.08333333333334"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-2E3EC472-51BD-4A93-A60D-04A7F426EA80" id="BPMNEdge_sid-2E3EC472-51BD-4A93-A60D-04A7F426EA80"> <omgdi:waypoint x="141.68337966904332" y="270.3396296690433"></omgdi:waypoint> <omgdi:waypoint x="242.66728624535318" y="185.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-1398ECCB-6D36-4B48-BF56-49B51D945253" id="BPMNEdge_sid-1398ECCB-6D36-4B48-BF56-49B51D945253"> <omgdi:waypoint x="340.0" y="280.0"></omgdi:waypoint> <omgdi:waypoint x="420.0" y="280.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-7085EC70-4D28-492B-A7DD-B7CE390BC02E" id="BPMNEdge_sid-7085EC70-4D28-492B-A7DD-B7CE390BC02E"> <omgdi:waypoint x="758.126582278481" y="287.126582278481"></omgdi:waypoint> <omgdi:waypoint x="625.0" y="369.18158567774935"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-3D104B09-01D7-4A06-96B2-00BDB837C3D6" id="BPMNEdge_sid-3D104B09-01D7-4A06-96B2-00BDB837C3D6"> <omgdi:waypoint x="970.0" y="278.74257205784494"></omgdi:waypoint> <omgdi:waypoint x="1051.6779516825768" y="278.3220483174232"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="sid-E8F0F5A4-DB38-458F-B944-DC3649311EEC" id="BPMNEdge_sid-E8F0F5A4-DB38-458F-B944-DC3649311EEC"> <omgdi:waypoint x="639.5637583892617" y="145.43624161073825"></omgdi:waypoint> <omgdi:waypoint x="720.0" y="145.16722408026754"></omgdi:waypoint> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>
回帖
  • 消灭零回复