2
1
Prechádzať zdrojové kódy

审批驳回工作流

baichengfei 5 rokov pred
rodič
commit
b803dc3040

+ 5 - 6
src/main/java/com/common/workflow/service/activiti/supplierListener/ApprovalRefuseService.java

@@ -2,30 +2,29 @@ package com.common.workflow.service.activiti.supplierListener;
 
 import com.common.workflow.service.util.HttpRequest;
 import org.activiti.engine.ActivitiException;
-import org.activiti.engine.delegate.DelegateExecution;
-import org.activiti.engine.delegate.DelegateTask;
-import org.activiti.engine.delegate.ExecutionListener;
-import org.activiti.engine.delegate.TaskListener;
+import org.activiti.engine.delegate.*;
 import org.springframework.stereotype.Component;
 
 import java.util.Arrays;
 
 @Component("approvalRefuseService")
 public class ApprovalRefuseService implements ExecutionListener {
+
+    private Expression stepCode;
     // 审批驳回
     @Override
     public void notify(DelegateExecution delegateExecution) {
         String callbackUrl = delegateExecution.getVariable("callbackUrl").toString();
         // String processKey = delegateExecution.getVariable("processKey").toString();
         String businessKey = delegateExecution.getVariable("businessKey").toString();
-
+        Object nowStepCode = stepCode.getValue(delegateExecution).toString();
         String approveUrl = callbackUrl + "/suppliercert-listener/approval-refuse";
 
         String createUserId = "";
         if (callbackUrl.length() > 0) {
             // TODO 哪个环节被驳回的, 方便短信通知使用
             String taskName = delegateExecution.getEventName();
-            createUserId = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+            createUserId = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey + "&stepCode=" + nowStepCode);
         } else {
             throw new ActivitiException("无回调地址,请联系管理员!");
         }

+ 36 - 15
src/main/resources/processes/oil_audit_apply.bpmn20.xml

@@ -60,15 +60,9 @@
         <sequenceFlow id="sid-37BD7150-CF5D-4AA6-982D-B305AE720F99" sourceRef="sid-8AD63D80-EE96-4C4A-8CB2-D68CD97446B9" targetRef="sid-AA4E2369-207E-4521-ABDA-2143E78E7C2D">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
-        <sequenceFlow id="sid-F39CE67A-02DA-44CB-A534-968088FC5F18" name="不通过" sourceRef="sid-AA4E2369-207E-4521-ABDA-2143E78E7C2D" targetRef="sid-0B124434-FDAD-4E82-91CB-E570A44E7FF3">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
         <sequenceFlow id="sid-002682E5-FF90-4A74-8707-0F8B98C09674" name="通过" sourceRef="sid-F9F4339F-8661-4A1A-8DE1-910A47304BCE" targetRef="sid-8AD63D80-EE96-4C4A-8CB2-D68CD97446B9">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
-        <sequenceFlow id="sid-1E900E80-E7FB-4E3F-AB4F-84FD36F69163" name="不通过" sourceRef="sid-F9F4339F-8661-4A1A-8DE1-910A47304BCE" targetRef="sid-0B124434-FDAD-4E82-91CB-E570A44E7FF3">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
         <sequenceFlow id="sid-73C36D3C-6C4C-4B65-9502-D7B6BC4A5E46" sourceRef="sid-D5765623-E20C-4774-9303-488697382FC8" targetRef="sid-F9F4339F-8661-4A1A-8DE1-910A47304BCE">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
@@ -83,9 +77,6 @@
         <sequenceFlow id="sid-2F6390F0-B470-4949-965D-F95510CF8844" name="通过不交费" sourceRef="sid-B93E1164-9FAC-4D21-A691-2A4411C35635" targetRef="sid-C633703C-7627-495A-AFDA-0CE56BDF3BD0">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==2}]]></conditionExpression>
         </sequenceFlow>
-        <sequenceFlow id="sid-0F7FB010-0A59-4862-8046-36C4B320FB28" name="不通过" sourceRef="sid-B93E1164-9FAC-4D21-A691-2A4411C35635" targetRef="sid-0B124434-FDAD-4E82-91CB-E570A44E7FF3">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
         <sequenceFlow id="sid-55958C51-2348-4DB4-A8EA-9C2605D72F9A" sourceRef="sid-DEDBD6B6-5348-494A-A212-18A171193232" targetRef="sid-B93E1164-9FAC-4D21-A691-2A4411C35635">
             <extensionElements>
                 <activiti:executionListener event="start" delegateExpression="${annualCheckNeedPayService}"></activiti:executionListener>
@@ -94,6 +85,36 @@
         <sequenceFlow id="sid-1E9A7C43-FEF5-4D45-A307-0430AA71DB12" name="企业用户提交" sourceRef="sid-9A4454BD-9A0F-4B81-B482-BA2179020366" targetRef="sid-D55B6E5D-5608-449F-A7A9-A349E1EA4BA8">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
+        <sequenceFlow id="sid-1E900E80-E7FB-4E3F-AB4F-84FD36F69163" name="不通过" sourceRef="sid-F9F4339F-8661-4A1A-8DE1-910A47304BCE" targetRef="sid-0B124434-FDAD-4E82-91CB-E570A44E7FF3">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${annualApprovalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-1]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-F39CE67A-02DA-44CB-A534-968088FC5F18" name="不通过" sourceRef="sid-AA4E2369-207E-4521-ABDA-2143E78E7C2D" targetRef="sid-0B124434-FDAD-4E82-91CB-E570A44E7FF3">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${annualApprovalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-2]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-0F7FB010-0A59-4862-8046-36C4B320FB28" name="不通过" sourceRef="sid-B93E1164-9FAC-4D21-A691-2A4411C35635" targetRef="sid-0B124434-FDAD-4E82-91CB-E570A44E7FF3">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${annualApprovalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-5]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
     </process>
     <bpmndi:BPMNDiagram id="BPMNDiagram_oil_audit_apply">
         <bpmndi:BPMNPlane bpmnElement="oil_audit_apply" id="BPMNPlane_oil_audit_apply">
@@ -140,18 +161,18 @@
                 <omgdi:waypoint x="849.5798319327731" y="178.42016806722728"></omgdi:waypoint>
                 <omgdi:waypoint x="900.0" y="178.2092050209209"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
-            <bpmndi:BPMNEdge bpmnElement="sid-F39CE67A-02DA-44CB-A534-968088FC5F18" id="BPMNEdge_sid-F39CE67A-02DA-44CB-A534-968088FC5F18">
-                <omgdi:waypoint x="830.5" y="197.5000000000004"></omgdi:waypoint>
-                <omgdi:waypoint x="830.5" y="253.01446533203125"></omgdi:waypoint>
-                <omgdi:waypoint x="115.0" y="253.01446533203125"></omgdi:waypoint>
-                <omgdi:waypoint x="115.0" y="219.0"></omgdi:waypoint>
-            </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-2F6390F0-B470-4949-965D-F95510CF8844" id="BPMNEdge_sid-2F6390F0-B470-4949-965D-F95510CF8844">
                 <omgdi:waypoint x="1052.5" y="158.5000000000004"></omgdi:waypoint>
                 <omgdi:waypoint x="1052.5" y="117.01628112792969"></omgdi:waypoint>
                 <omgdi:waypoint x="1312.0" y="117.01628112792969"></omgdi:waypoint>
                 <omgdi:waypoint x="1312.0" y="138.0000000000004"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-F39CE67A-02DA-44CB-A534-968088FC5F18" id="BPMNEdge_sid-F39CE67A-02DA-44CB-A534-968088FC5F18">
+                <omgdi:waypoint x="830.5" y="197.5000000000004"></omgdi:waypoint>
+                <omgdi:waypoint x="830.5" y="253.01446533203125"></omgdi:waypoint>
+                <omgdi:waypoint x="115.0" y="253.01446533203125"></omgdi:waypoint>
+                <omgdi:waypoint x="115.0" y="219.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-4FDD2371-4005-422A-8183-71F35A0A0808" id="BPMNEdge_sid-4FDD2371-4005-422A-8183-71F35A0A0808">
                 <omgdi:waypoint x="1071.5833333333333" y="178.41666666666706"></omgdi:waypoint>
                 <omgdi:waypoint x="1117.0" y="178.2183406113541"></omgdi:waypoint>

+ 36 - 13
src/main/resources/processes/oil_enuser_append_apply.bpmn20.xml

@@ -45,7 +45,6 @@
                 <activiti:taskListener event="create" delegateExpression="${appendPrePayerService}"></activiti:taskListener>
             </extensionElements>
         </userTask>
-        <sequenceFlow id="sid-F5F08BDE-2393-4D89-85D3-C40C6199CF5B" name="通过" sourceRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" targetRef="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77"></sequenceFlow>
         <userTask id="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C" name="企管法规处入库" activiti:candidateUsers="${users}">
             <extensionElements>
                 <activiti:taskListener event="create" delegateExpression="${appendPreStorageAuditService}"></activiti:taskListener>
@@ -58,12 +57,6 @@
         <sequenceFlow id="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" name="通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
-        <sequenceFlow id="sid-8E11FCEE-5E6E-4C47-84E1-448933CB3E94" name="不通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
-        <sequenceFlow id="sid-E20D16A1-7AC4-40EF-BAA3-FC171BF0F8D3" name="不通过" sourceRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
         <sequenceFlow id="sid-67A5C40B-EF7D-42AC-8543-BC1E0CB1BDE2" name="企业用户申请" sourceRef="sid-ACC9707A-EFE4-4980-988B-5F87083CE851" targetRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
@@ -73,12 +66,6 @@
         <sequenceFlow id="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" name="通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
-        <sequenceFlow id="sid-AA46B27B-7C3C-4586-BB9D-28AC48B16F5E" name="不通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
-        <sequenceFlow id="sid-DE214B02-7077-42D9-99ED-6263C21BBBDE" name="通过不交费" sourceRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" targetRef="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==2}]]></conditionExpression>
-        </sequenceFlow>
         <sequenceFlow id="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" sourceRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" targetRef="sid-E178BD57-68C0-4C23-8952-143905257209"></sequenceFlow>
         <sequenceFlow id="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" sourceRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" targetRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></sequenceFlow>
         <sequenceFlow id="sid-BE646B05-EF10-4029-BC3B-BCABCFF884B1" sourceRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" targetRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B">
@@ -86,6 +73,42 @@
                 <activiti:executionListener event="start" delegateExpression="${appendCheckNeedPayService}"></activiti:executionListener>
             </extensionElements>
         </sequenceFlow>
+        <sequenceFlow id="sid-DE214B02-7077-42D9-99ED-6263C21BBBDE" name="通过不交费" sourceRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" targetRef="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C">
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==2}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-F5F08BDE-2393-4D89-85D3-C40C6199CF5B" name="通过" sourceRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" targetRef="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77">
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-AA46B27B-7C3C-4586-BB9D-28AC48B16F5E" name="不通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${appendApprovalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-1]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-E20D16A1-7AC4-40EF-BAA3-FC171BF0F8D3" name="不通过" sourceRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${appendApprovalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-5]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-8E11FCEE-5E6E-4C47-84E1-448933CB3E94" name="不通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${appendApprovalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-2]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
     </process>
     <bpmndi:BPMNDiagram id="BPMNDiagram_oil_enuser_append_apply">
         <bpmndi:BPMNPlane bpmnElement="oil_enuser_append_apply" id="BPMNPlane_oil_enuser_append_apply">

+ 53 - 37
src/main/resources/processes/oil_enuser_supplier_apply.bpmn20.xml

@@ -85,24 +85,6 @@
                 <activiti:executionListener event="end" delegateExpression="${checkNeedPayService}"></activiti:executionListener>
             </extensionElements>
         </sequenceFlow>
-        <sequenceFlow id="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" name="不通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
-            <extensionElements>
-                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}"></activiti:executionListener>
-            </extensionElements>
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
-        <sequenceFlow id="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" name="不通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
-            <extensionElements>
-                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}"></activiti:executionListener>
-            </extensionElements>
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
-        <sequenceFlow id="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" name="不通过" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
-            <extensionElements>
-                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}"></activiti:executionListener>
-            </extensionElements>
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
-        </sequenceFlow>
         <sequenceFlow id="sid-22C499F4-7179-4558-BC4C-77EF7453FA56" sourceRef="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" targetRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF"></sequenceFlow>
         <sequenceFlow id="sid-89ED731E-278D-4033-8445-73676D8B5F0A" name="审批" sourceRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" targetRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23">
             <extensionElements>
@@ -118,14 +100,48 @@
         <sequenceFlow id="sid-E19E2941-6B2A-4114-B292-5D789BA0959A" name="通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3">
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
         </sequenceFlow>
+        <sequenceFlow id="sid-D683E891-1671-40A6-9103-C03866D0640B" name="通过不缴费" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-FA63BEF0-2F3E-4A13-BEB8-286C4AA9F600">
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==2}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" name="不通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-1]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
+        <sequenceFlow id="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" name="不通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-2]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+        </sequenceFlow>
         <sequenceFlow id="sid-FCCDF8E6-9500-4D5F-A79C-CE674F870F6C" name="审核不通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
             <extensionElements>
-                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}"></activiti:executionListener>
+                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-4]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
             </extensionElements>
             <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
         </sequenceFlow>
-        <sequenceFlow id="sid-D683E891-1671-40A6-9103-C03866D0640B" name="通过不缴费" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-FA63BEF0-2F3E-4A13-BEB8-286C4AA9F600">
-            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==2}]]></conditionExpression>
+        <sequenceFlow id="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" name="不通过" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${approvalRefuseService}">
+                    <activiti:field name="stepCode">
+                        <activiti:string><![CDATA[-5]]></activiti:string>
+                    </activiti:field>
+                </activiti:executionListener>
+            </extensionElements>
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
         </sequenceFlow>
     </process>
     <bpmndi:BPMNDiagram id="BPMNDiagram_oil_enuser_supplier_apply">
@@ -149,7 +165,7 @@
                 <omgdc:Bounds height="40.0" width="40.0" x="790.0" y="279.9999973509047"></omgdc:Bounds>
             </bpmndi:BPMNShape>
             <bpmndi:BPMNShape bpmnElement="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" id="BPMNShape_sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF">
-                <omgdc:Bounds height="79.99999999999994" width="100.0" x="475.0" y="255.00000000000006"></omgdc:Bounds>
+                <omgdc:Bounds height="79.99999999999994" width="100.0" x="465.0" y="255.0"></omgdc:Bounds>
             </bpmndi:BPMNShape>
             <bpmndi:BPMNShape bpmnElement="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" id="BPMNShape_sid-C9D007EC-DA5F-480E-A280-EBF70615C514">
                 <omgdc:Bounds height="40.0" width="40.0" x="595.0" y="279.99999735090523"></omgdc:Bounds>
@@ -182,29 +198,29 @@
                 <omgdi:waypoint x="1100.0" y="299.9999973509049"></omgdi:waypoint>
                 <omgdi:waypoint x="1135.0" y="299.9999973509048"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
-            <bpmndi:BPMNEdge bpmnElement="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" id="BPMNEdge_sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170">
-                <omgdi:waypoint x="1365.5" y="319.49999735090523"></omgdi:waypoint>
-                <omgdi:waypoint x="1365.5" y="375.01446533203125"></omgdi:waypoint>
-                <omgdi:waypoint x="135.0" y="373.01446533203125"></omgdi:waypoint>
-                <omgdi:waypoint x="135.0" y="335.0"></omgdi:waypoint>
-            </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-FCCDF8E6-9500-4D5F-A79C-CE674F870F6C" id="BPMNEdge_sid-FCCDF8E6-9500-4D5F-A79C-CE674F870F6C">
                 <omgdi:waypoint x="1155.0837462142554" y="319.91625113664924"></omgdi:waypoint>
                 <omgdi:waypoint x="1155.3154296875" y="375.01446533203125"></omgdi:waypoint>
                 <omgdi:waypoint x="135.31541442871094" y="372.01446533203125"></omgdi:waypoint>
                 <omgdi:waypoint x="135.16382087565034" y="335.0"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" id="BPMNEdge_sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170">
+                <omgdi:waypoint x="1365.5" y="319.49999735090523"></omgdi:waypoint>
+                <omgdi:waypoint x="1365.5" y="375.01446533203125"></omgdi:waypoint>
+                <omgdi:waypoint x="135.0" y="373.01446533203125"></omgdi:waypoint>
+                <omgdi:waypoint x="135.0" y="335.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-6A7B4FFF-D815-4522-93E3-ACA3E92104EE" id="BPMNEdge_sid-6A7B4FFF-D815-4522-93E3-ACA3E92104EE">
                 <omgdi:waypoint x="1743.0" y="300.2490071485306"></omgdi:waypoint>
                 <omgdi:waypoint x="1795.0000996389547" y="300.05281932225176"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-3E3D56A7-2EE5-42D1-AB6D-2892B8D3E794" id="BPMNEdge_sid-3E3D56A7-2EE5-42D1-AB6D-2892B8D3E794">
                 <omgdi:waypoint x="430.0" y="295.0"></omgdi:waypoint>
-                <omgdi:waypoint x="475.0" y="295.0"></omgdi:waypoint>
+                <omgdi:waypoint x="465.0" y="295.0"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" id="BPMNEdge_sid-2BD5B023-739C-4D78-8F49-F1B96336102D">
-                <omgdi:waypoint x="575.0" y="297.77777630605846"></omgdi:waypoint>
-                <omgdi:waypoint x="596.052631050596" y="298.94736630030917"></omgdi:waypoint>
+                <omgdi:waypoint x="565.0" y="297.4999986754526"></omgdi:waypoint>
+                <omgdi:waypoint x="595.9523804718195" y="299.0476168790857"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-22A32961-337F-4185-8E96-CF46812C6A5A" id="BPMNEdge_sid-22A32961-337F-4185-8E96-CF46812C6A5A">
                 <omgdi:waypoint x="1565.0" y="300.15482398956976"></omgdi:waypoint>
@@ -241,8 +257,8 @@
             <bpmndi:BPMNEdge bpmnElement="sid-45DED472-AC98-4ED3-B1EE-3EE6305F1413" id="BPMNEdge_sid-45DED472-AC98-4ED3-B1EE-3EE6305F1413">
                 <omgdi:waypoint x="250.5" y="275.5"></omgdi:waypoint>
                 <omgdi:waypoint x="250.5" y="233.01446533203125"></omgdi:waypoint>
-                <omgdi:waypoint x="525.3153991699219" y="232.01446533203125"></omgdi:waypoint>
-                <omgdi:waypoint x="525.2002994316613" y="255.00000000000006"></omgdi:waypoint>
+                <omgdi:waypoint x="515.0" y="232.01446533203125"></omgdi:waypoint>
+                <omgdi:waypoint x="515.0" y="255.0"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" id="BPMNEdge_sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31">
                 <omgdi:waypoint x="615.5" y="319.49999735090523"></omgdi:waypoint>
@@ -264,16 +280,16 @@
                 <omgdi:waypoint x="769.9999999999999" y="299.99999735090495"></omgdi:waypoint>
                 <omgdi:waypoint x="789.9999999999999" y="299.99999735090483"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-E19E2941-6B2A-4114-B292-5D789BA0959A" id="BPMNEdge_sid-E19E2941-6B2A-4114-B292-5D789BA0959A">
+                <omgdi:waypoint x="1174.5913461538462" y="300.4086511970586"></omgdi:waypoint>
+                <omgdi:waypoint x="1210.0" y="300.2392318006655"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" id="BPMNEdge_sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32">
                 <omgdi:waypoint x="810.3492450483038" y="319.6507523026009"></omgdi:waypoint>
                 <omgdi:waypoint x="811.3154296875" y="374.01446533203125"></omgdi:waypoint>
                 <omgdi:waypoint x="135.31541442871094" y="373.01446533203125"></omgdi:waypoint>
                 <omgdi:waypoint x="136.31579509534333" y="335.0"></omgdi:waypoint>
             </bpmndi:BPMNEdge>
-            <bpmndi:BPMNEdge bpmnElement="sid-E19E2941-6B2A-4114-B292-5D789BA0959A" id="BPMNEdge_sid-E19E2941-6B2A-4114-B292-5D789BA0959A">
-                <omgdi:waypoint x="1174.5913461538462" y="300.4086511970586"></omgdi:waypoint>
-                <omgdi:waypoint x="1210.0" y="300.2392318006655"></omgdi:waypoint>
-            </bpmndi:BPMNEdge>
             <bpmndi:BPMNEdge bpmnElement="sid-D6C377D7-98CC-4D68-B577-22E60AD1578A" id="BPMNEdge_sid-D6C377D7-98CC-4D68-B577-22E60AD1578A">
                 <omgdi:waypoint x="1155.5" y="280.4999973509047"></omgdi:waypoint>
                 <omgdi:waypoint x="1155.5" y="230.0162811279297"></omgdi:waypoint>