Преглед на файлове

增项申请监听器, 增项审批流程

baichengfei преди 5 години
родител
ревизия
6ca7a99003

+ 38 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendCheckNeedPayService.java

@@ -0,0 +1,38 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.util.HttpRequest;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateExecution;
+import org.activiti.engine.delegate.ExecutionListener;
+import org.springframework.stereotype.Component;
+
+/**
+ * Created by gyue on 2019-04-01.
+ */
+@Component("appendCheckNeedPayService")
+public class AppendCheckNeedPayService implements ExecutionListener {
+
+    @Override
+    public void notify(DelegateExecution delegateExecution) {
+        String callbackUrl = delegateExecution.getVariable("callbackUrl").toString();
+        String businessKey = delegateExecution.getVariable("businessKey").toString();
+        String  result = delegateExecution.getVariable("result").toString();
+        // ApproveParamsDTO approveParams = new ApproveParamsDTO();
+        // approveParams.setBusinessKey(businessKey);
+
+        if (!result.equals("0")) {
+            String approveUrl = callbackUrl + "/suppliercert-append-listener/check-need-pay";
+            String isPay = "0";
+            if (callbackUrl.length() > 0) {
+                isPay = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+            } else {
+                throw new ActivitiException("无回调地址,请联系管理员!");
+            }
+            if (isPay.equals("0")) {
+                throw new ActivitiException("准入类型是否付费有误!请联系管理员!");
+            }
+            delegateExecution.setVariable("result", isPay);
+            delegateExecution.setVariableLocal("result", isPay);
+        }
+    }
+}

+ 35 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendPreFirstTrailService.java

@@ -0,0 +1,35 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.util.HttpRequest;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateTask;
+import org.activiti.engine.delegate.TaskListener;
+import org.springframework.stereotype.Component;
+
+import java.util.Arrays;
+
+@Component("appendPreFirstTrailService")
+public class AppendPreFirstTrailService implements TaskListener {
+    // 二级单位初审
+    @Override
+    public void notify(DelegateTask delegateTask) {
+        String callbackUrl = delegateTask.getVariable("callbackUrl").toString();
+        // String processKey = delegateTask.getVariable("processKey").toString();
+        String businessKey = delegateTask.getVariable("businessKey").toString();
+
+        String approveUrl = callbackUrl + "/suppliercert-append-listener/pre-first-trail";
+
+        String approveIds = "";
+        if (callbackUrl.length() > 0) {
+            approveIds = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+        } else {
+            throw new ActivitiException("无回调地址,请联系管理员!");
+        }
+        if (approveIds.length() <= 0) {
+            throw new ActivitiException("未找到审核用户,请联系管理员!");
+        }
+        delegateTask.setVariable("users", approveIds);
+        delegateTask.setVariableLocal("users", approveIds);
+        delegateTask.addCandidateUsers(Arrays.asList(approveIds.split(",")));
+    }
+}

+ 35 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendPrePayerService.java

@@ -0,0 +1,35 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.util.HttpRequest;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateTask;
+import org.activiti.engine.delegate.TaskListener;
+import org.springframework.stereotype.Component;
+
+import java.util.Arrays;
+
+@Component("appendPrePayerService")
+public class AppendPrePayerService implements TaskListener {
+    // 获取交费人
+    @Override
+    public void notify(DelegateTask delegateTask) {
+        String callbackUrl = delegateTask.getVariable("callbackUrl").toString();
+        // String processKey = delegateTask.getVariable("processKey").toString();
+        String businessKey = delegateTask.getVariable("businessKey").toString();
+
+        String approveUrl = callbackUrl + "/suppliercert-append-listener/pre-payer";
+
+        String approveIds = "";
+        if (callbackUrl.length() > 0) {
+            approveIds = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+        } else {
+            throw new ActivitiException("无回调地址,请联系管理员!");
+        }
+        if (approveIds.length() <= 0) {
+            throw new ActivitiException("未找到审核用户,请联系管理员!");
+        }
+        delegateTask.setVariable("users", approveIds);
+        delegateTask.setVariableLocal("users", approveIds);
+        delegateTask.addCandidateUsers(Arrays.asList(approveIds.split(",")));
+    }
+}

+ 30 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendPreProfAuditService.java

@@ -0,0 +1,30 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.util.HttpRequest;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateTask;
+import org.activiti.engine.delegate.TaskListener;
+import org.springframework.stereotype.Component;
+
+@Component("appendPreProfAuditService")
+public class AppendPreProfAuditService implements TaskListener {
+    // 业务处室专业审批 仅用于回调更新状态
+    @Override
+    public void notify(DelegateTask delegateTask) {
+        String callbackUrl = delegateTask.getVariable("callbackUrl").toString();
+        // String processKey = delegateTask.getVariable("processKey").toString();
+        String businessKey = delegateTask.getVariable("businessKey").toString();
+
+        String approveUrl = callbackUrl + "/suppliercert-append-listener/pre-prof-audit";
+
+        String res = "";
+        if (callbackUrl.length() > 0) {
+            res = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+        } else {
+            throw new ActivitiException("无回调地址,请联系管理员!");
+        }
+        if (!res.equals("1")) {
+            throw new ActivitiException("工作流异常,请联系管理员!");
+        }
+    }
+}

+ 35 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendPreSecondTrailService.java

@@ -0,0 +1,35 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.util.HttpRequest;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateTask;
+import org.activiti.engine.delegate.TaskListener;
+import org.springframework.stereotype.Component;
+
+import java.util.Arrays;
+
+@Component("appendPreSecondTrailService")
+public class AppendPreSecondTrailService implements TaskListener {
+    // 二级单位复审
+    @Override
+    public void notify(DelegateTask delegateTask) {
+        String callbackUrl = delegateTask.getVariable("callbackUrl").toString();
+        // String processKey = delegateTask.getVariable("processKey").toString();
+        String businessKey = delegateTask.getVariable("businessKey").toString();
+
+        String approveUrl = callbackUrl + "/suppliercert-append-listener/pre-second-trail";
+
+        String approveIds = "";
+        if (callbackUrl.length() > 0) {
+            approveIds = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+        } else {
+            throw new ActivitiException("无回调地址,请联系管理员!");
+        }
+        if (approveIds.length() <= 0) {
+            throw new ActivitiException("未找到审核用户,请联系管理员!");
+        }
+        delegateTask.setVariable("users", approveIds);
+        delegateTask.setVariableLocal("users", approveIds);
+        delegateTask.addCandidateUsers(Arrays.asList(approveIds.split(",")));
+    }
+}

+ 46 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendPreStorageAuditService.java

@@ -0,0 +1,46 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.client.FeignClient;
+import com.common.workflow.service.dto.ApproveInfoDTO;
+import com.common.workflow.service.dto.ApproveParamsDTO;
+import feign.Feign;
+import feign.jackson.JacksonDecoder;
+import feign.jackson.JacksonEncoder;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateTask;
+import org.activiti.engine.delegate.TaskListener;
+import org.springframework.stereotype.Component;
+
+import java.util.Arrays;
+
+@Component("appendPreStorageAuditService")
+public class AppendPreStorageAuditService implements TaskListener {
+    // 企业法规处入库审核
+    @Override
+    public void notify(DelegateTask delegateTask) {
+        String callbackUrl = delegateTask.getVariable("callbackUrl").toString();
+        String businessKey = delegateTask.getVariable("businessKey").toString();
+        ApproveParamsDTO approveParams = new ApproveParamsDTO();
+        approveParams.setBusinessKey(businessKey);
+        ApproveInfoDTO approveInfo = null;
+        String approveInfoJson = "";
+        if (callbackUrl.length() > 0) {
+            FeignClient client = Feign.builder()
+                .decoder(new JacksonDecoder())
+                .encoder(new JacksonEncoder())
+                .target(FeignClient.class, callbackUrl);
+            approveInfo = client.getPreStorageAuditors(approveParams);
+            // approveInfoJson = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+            // approveInfo = (ApproveInfoDTO) JSONObject.parse(approveInfoJson);
+        } else {
+            throw new ActivitiException("无回调地址,请联系管理员!");
+        }
+        if (approveInfo.getUsers().length() <= 0) {
+            throw new ActivitiException("未找到审核用户,请联系管理员!");
+        }
+
+        delegateTask.setVariable("users", approveInfo.getUsers());
+        delegateTask.setVariableLocal("users", approveInfo.getUsers());
+        delegateTask.addCandidateUsers(Arrays.asList(approveInfo.getUsers().split(",")));
+    }
+}

+ 44 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendPreThirdTrialService.java

@@ -0,0 +1,44 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.client.FeignClient;
+import com.common.workflow.service.dto.ApproveInfoDTO;
+import com.common.workflow.service.dto.ApproveParamsDTO;
+import feign.Feign;
+import feign.jackson.JacksonDecoder;
+import feign.jackson.JacksonEncoder;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateTask;
+import org.activiti.engine.delegate.TaskListener;
+import org.springframework.stereotype.Component;
+
+import java.util.Arrays;
+
+@Component("appendPreThirdTrialService")
+public class AppendPreThirdTrialService implements TaskListener {
+    // 业务处室接收分办
+    @Override
+    public void notify(DelegateTask delegateTask) {
+        String callbackUrl = delegateTask.getVariable("callbackUrl").toString();
+        String businessKey = delegateTask.getVariable("businessKey").toString();
+        ApproveParamsDTO approveParams = new ApproveParamsDTO();
+        approveParams.setBusinessKey(businessKey);
+        ApproveInfoDTO approveInfo = null;
+        String approveInfoJson = "";
+        if (callbackUrl.length() > 0) {
+            FeignClient client = Feign.builder()
+                .decoder(new JacksonDecoder())
+                .encoder(new JacksonEncoder())
+                .target(FeignClient.class, callbackUrl);
+            approveInfo = client.getAppendPreStorageAuditors(approveParams);
+        } else {
+            throw new ActivitiException("无回调地址,请联系管理员!");
+        }
+        if (approveInfo.getUsers().length() <= 0) {
+            throw new ActivitiException("未找到审核用户,请联系管理员!");
+        }
+
+        delegateTask.setVariable("users", approveInfo.getUsers());
+        delegateTask.setVariableLocal("users", approveInfo.getUsers());
+        delegateTask.addCandidateUsers(Arrays.asList(approveInfo.getUsers().split(",")));
+    }
+}

+ 30 - 0
src/main/java/com/common/workflow/service/activiti/supplierAppendListener/AppendWorkflowEndService.java

@@ -0,0 +1,30 @@
+package com.common.workflow.service.activiti.supplierAppendListener;
+
+import com.common.workflow.service.util.HttpRequest;
+import org.activiti.engine.ActivitiException;
+import org.activiti.engine.delegate.DelegateTask;
+import org.activiti.engine.delegate.TaskListener;
+import org.springframework.stereotype.Component;
+
+@Component("appendWorkflowEndService")
+public class AppendWorkflowEndService implements TaskListener {
+    // 企业法规处审批入库完成
+    @Override
+    public void notify(DelegateTask delegateTask) {
+        String callbackUrl = delegateTask.getVariable("callbackUrl").toString();
+        // String processKey = delegateTask.getVariable("processKey").toString();
+        String businessKey = delegateTask.getVariable("businessKey").toString();
+
+        String approveUrl = callbackUrl + "/suppliercert-append-listener/workflow-end";
+
+        String res = "0";
+        if (callbackUrl.length() > 0) {
+            res = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+        } else {
+            throw new ActivitiException("无回调地址,请联系管理员!");
+        }
+        if (res.equals("0")) {
+            throw new ActivitiException("审核入库失败!请联系管理员!");
+        }
+    }
+}

+ 9 - 0
src/main/java/com/common/workflow/service/client/FeignClient.java

@@ -36,4 +36,13 @@ public interface FeignClient {
     @Headers({"Content-Type: application/json","Accept: application/json"})
     @RequestLine("POST /suppliercert-listener/pre-fen-trail")
     ApproveInfoDTO getPreFirstAuditors(@RequestBody ApproveParamsDTO approveParamsDTO);
+
+    // 增项申请 ⬇
+    @Headers({"Content-Type: application/json","Accept: application/json"})
+    @RequestLine("POST /suppliercert-append-listener/pre-third-trail")
+    ApproveInfoDTO getAppendPreThirdTrail(@RequestBody ApproveParamsDTO approveParamsDTO);
+
+    @Headers({"Content-Type: application/json","Accept: application/json"})
+    @RequestLine("POST /suppliercert-append-listener/pre-storage-audit")
+    ApproveInfoDTO getAppendPreStorageAuditors(@RequestBody ApproveParamsDTO approveParamsDTO);
 }

+ 216 - 219
src/main/resources/processes/oil_enuser_append_apply.bpmn20.xml

@@ -1,221 +1,218 @@
 <?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="oil_enuser_append_apply" name="oil_enuser_append_apply" isExecutable="true">
-    <documentation>增项审批流程</documentation>
-    <startEvent id="sid-9A4918D7-8376-4A00-928A-6415D92565EC" name="开始"></startEvent>
-    <userTask id="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" name="二级单位分办" activiti:candidateUsers="${users}"></userTask>
-    <userTask id="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" name="业务处室专业审批" activiti:candidateUsers="${users}"></userTask>
-    <exclusiveGateway id="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23"></exclusiveGateway>
-    <userTask id="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" name="二级单位复审" activiti:candidateUsers="${users}"></userTask>
-    <exclusiveGateway id="sid-E178BD57-68C0-4C23-8952-143905257209"></exclusiveGateway>
-    <userTask id="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" name="二级单位初审" activiti:candidateUsers="${users}"></userTask>
-    <exclusiveGateway id="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></exclusiveGateway>
-    <userTask id="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" name="集中评审" activiti:candidateUsers="${users}"></userTask>
-    <endEvent id="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D"></endEvent>
-    <sequenceFlow id="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" sourceRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" targetRef="sid-E178BD57-68C0-4C23-8952-143905257209"></sequenceFlow>
-    <userTask id="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" name="业务处室接收" activiti:candidateUsers="${users}"></userTask>
-    <userTask id="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" name="增项申请" activiti:assignee="${recorder}">
-      <extensionElements>
-        <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
-      </extensionElements>
-    </userTask>
-    <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-2BD5B023-739C-4D78-8F49-F1B96336102D" sourceRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" targetRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></sequenceFlow>
-    <sequenceFlow id="sid-E19E2941-6B2A-4114-B292-5D789BA0959A" name="通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3"></sequenceFlow>
-    <sequenceFlow id="sid-2A034CD8-BB86-4783-97D9-DBAE8D4A7199" sourceRef="sid-9A4918D7-8376-4A00-928A-6415D92565EC" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E"></sequenceFlow>
-    <sequenceFlow id="sid-D6D3EE5B-D83D-4D08-A781-CCCEB6AF9412" sourceRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" targetRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF"></sequenceFlow>
-    <sequenceFlow id="sid-89ED731E-278D-4033-8445-73676D8B5F0A" sourceRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" targetRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23"></sequenceFlow>
-    <exclusiveGateway id="sid-23C9D008-0522-4173-924B-616B0B9E2A1B"></exclusiveGateway>
-    <userTask id="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77" name="交费" activiti:candidateUsers="${users}"></userTask>
-    <sequenceFlow id="sid-BE646B05-EF10-4029-BC3B-BCABCFF884B1" sourceRef="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" targetRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B"></sequenceFlow>
-    <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}"></userTask>
-    <sequenceFlow id="sid-31F41F5A-DC38-48A4-AB39-6CCAC30C2B39" sourceRef="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77" targetRef="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C"></sequenceFlow>
-    <sequenceFlow id="sid-3A36FF73-424D-4C84-9519-826C52CC9091" sourceRef="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C" targetRef="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D"></sequenceFlow>
-    <exclusiveGateway id="sid-ACC9707A-EFE4-4980-988B-5F87083CE851"></exclusiveGateway>
-    <sequenceFlow id="sid-D5B0EDC0-E1F6-4DF3-8769-47C8468EFED2" sourceRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" targetRef="sid-ACC9707A-EFE4-4980-988B-5F87083CE851"></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==0}]]></conditionExpression>
-    </sequenceFlow>
-    <sequenceFlow id="sid-5DF00195-C2A6-4F61-A585-A29C83728B82" name="二级单位申请" sourceRef="sid-ACC9707A-EFE4-4980-988B-5F87083CE851" targetRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF">
-      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
-    </sequenceFlow>
-    <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-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-34A1DB02-4A55-455D-A459-42572200C8DB" name="不通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" 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-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-455CD566-BEC9-47A8-B2AF-82FCC95C4672" name="通过不集中评审" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-23C9D008-0522-4173-924B-616B0B9E2A1B">
-      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==2}]]></conditionExpression>
-    </sequenceFlow>
-  </process>
-  <bpmndi:BPMNDiagram id="BPMNDiagram_oil_enuser_append_apply">
-    <bpmndi:BPMNPlane bpmnElement="oil_enuser_append_apply" id="BPMNPlane_oil_enuser_append_apply">
-      <bpmndi:BPMNShape bpmnElement="sid-9A4918D7-8376-4A00-928A-6415D92565EC" id="BPMNShape_sid-9A4918D7-8376-4A00-928A-6415D92565EC">
-        <omgdc:Bounds height="30.0" width="30.0" x="55.0" y="280.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" id="BPMNShape_sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397">
-        <omgdc:Bounds height="80.0" width="100.0" x="355.0" y="255.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" id="BPMNShape_sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF">
-        <omgdc:Bounds height="79.99999999999994" width="100.0" x="1030.0" y="255.00000000000006"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" id="BPMNShape_sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23">
-        <omgdc:Bounds height="40.0" width="40.0" x="1165.0" y="275.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" id="BPMNShape_sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
-        <omgdc:Bounds height="80.0" width="99.99999999999989" x="700.0" y="255.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-E178BD57-68C0-4C23-8952-143905257209" id="BPMNShape_sid-E178BD57-68C0-4C23-8952-143905257209">
-        <omgdc:Bounds height="40.0" width="40.0" x="820.0" y="275.0"></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.99999999999997" width="100.0" x="490.0" y="255.00000000000003"></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="625.0" y="275.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" id="BPMNShape_sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3">
-        <omgdc:Bounds height="80.0" width="100.00000000000023" x="1255.0" y="255.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D" id="BPMNShape_sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D">
-        <omgdc:Bounds height="28.0" width="28.0" x="1780.0" y="281.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" id="BPMNShape_sid-C18EB968-3E14-4BAF-9DEF-D767CA546066">
-        <omgdc:Bounds height="80.0" width="100.0" x="895.0" y="255.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" id="BPMNShape_sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
-        <omgdc:Bounds height="80.0" width="100.0" x="120.0" y="255.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" id="BPMNShape_sid-23C9D008-0522-4173-924B-616B0B9E2A1B">
-        <omgdc:Bounds height="40.0" width="40.0" x="1400.0" y="275.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77" id="BPMNShape_sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77">
-        <omgdc:Bounds height="80.0" width="100.0" x="1485.0" y="255.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C" id="BPMNShape_sid-3EA02700-4143-4282-A6C2-08CE0F38E76C">
-        <omgdc:Bounds height="80.0" width="100.0" x="1630.0" y="255.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNShape bpmnElement="sid-ACC9707A-EFE4-4980-988B-5F87083CE851" id="BPMNShape_sid-ACC9707A-EFE4-4980-988B-5F87083CE851">
-        <omgdc:Bounds height="40.0" width="40.0" x="265.0" y="275.0"></omgdc:Bounds>
-      </bpmndi:BPMNShape>
-      <bpmndi:BPMNEdge bpmnElement="sid-89ED731E-278D-4033-8445-73676D8B5F0A" id="BPMNEdge_sid-89ED731E-278D-4033-8445-73676D8B5F0A">
-        <omgdi:waypoint x="1130.0" y="295.0"></omgdi:waypoint>
-        <omgdi:waypoint x="1165.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="590.0" y="295.0"></omgdi:waypoint>
-        <omgdi:waypoint x="625.0" y="295.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-BE646B05-EF10-4029-BC3B-BCABCFF884B1" id="BPMNEdge_sid-BE646B05-EF10-4029-BC3B-BCABCFF884B1">
-        <omgdi:waypoint x="1355.0000000000002" y="295.2164502164502"></omgdi:waypoint>
-        <omgdi:waypoint x="1400.4130434782608" y="295.4130434782609"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-31F41F5A-DC38-48A4-AB39-6CCAC30C2B39" id="BPMNEdge_sid-31F41F5A-DC38-48A4-AB39-6CCAC30C2B39">
-        <omgdi:waypoint x="1585.0" y="295.0"></omgdi:waypoint>
-        <omgdi:waypoint x="1630.0" y="295.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-E20D16A1-7AC4-40EF-BAA3-FC171BF0F8D3" id="BPMNEdge_sid-E20D16A1-7AC4-40EF-BAA3-FC171BF0F8D3">
-        <omgdi:waypoint x="1420.656692450802" y="314.34330754919796"></omgdi:waypoint>
-        <omgdi:waypoint x="1421.111328125" y="369.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="170.0" y="367.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="170.0" y="335.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-3A36FF73-424D-4C84-9519-826C52CC9091" id="BPMNEdge_sid-3A36FF73-424D-4C84-9519-826C52CC9091">
-        <omgdi:waypoint x="1730.0" y="295.0"></omgdi:waypoint>
-        <omgdi:waypoint x="1780.0" y="295.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-67A5C40B-EF7D-42AC-8543-BC1E0CB1BDE2" id="BPMNEdge_sid-67A5C40B-EF7D-42AC-8543-BC1E0CB1BDE2">
-        <omgdi:waypoint x="304.5798319327731" y="295.4201680672269"></omgdi:waypoint>
-        <omgdi:waypoint x="355.0" y="295.20920502092054"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-2A034CD8-BB86-4783-97D9-DBAE8D4A7199" id="BPMNEdge_sid-2A034CD8-BB86-4783-97D9-DBAE8D4A7199">
-        <omgdi:waypoint x="85.0" y="295.0"></omgdi:waypoint>
-        <omgdi:waypoint x="120.0" y="295.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" id="BPMNEdge_sid-C916BA74-384F-4684-8ADB-16EA158FDE07">
-        <omgdi:waypoint x="664.5913461538462" y="295.40865384615387"></omgdi:waypoint>
-        <omgdi:waypoint x="700.0" y="295.2392344497608"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-AA46B27B-7C3C-4586-BB9D-28AC48B16F5E" id="BPMNEdge_sid-AA46B27B-7C3C-4586-BB9D-28AC48B16F5E">
-        <omgdi:waypoint x="645.5" y="314.5"></omgdi:waypoint>
-        <omgdi:waypoint x="645.5" y="367.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="170.0" y="367.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="170.0" y="335.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-22C499F4-7179-4558-BC4C-77EF7453FA56" id="BPMNEdge_sid-22C499F4-7179-4558-BC4C-77EF7453FA56">
-        <omgdi:waypoint x="995.0" y="295.0"></omgdi:waypoint>
-        <omgdi:waypoint x="1030.0" y="295.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-8E11FCEE-5E6E-4C47-84E1-448933CB3E94" id="BPMNEdge_sid-8E11FCEE-5E6E-4C47-84E1-448933CB3E94">
-        <omgdi:waypoint x="840.2977806122774" y="314.70221938772255"></omgdi:waypoint>
-        <omgdi:waypoint x="839.736328125" y="368.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="170.0" y="366.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="170.0" y="335.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" id="BPMNEdge_sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11">
-        <omgdi:waypoint x="859.5913461538462" y="295.40865384615387"></omgdi:waypoint>
-        <omgdi:waypoint x="895.0" y="295.2392344497608"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-DE214B02-7077-42D9-99ED-6263C21BBBDE" id="BPMNEdge_sid-DE214B02-7077-42D9-99ED-6263C21BBBDE">
-        <omgdi:waypoint x="1420.5" y="275.5"></omgdi:waypoint>
-        <omgdi:waypoint x="1420.5" y="222.0162811279297"></omgdi:waypoint>
-        <omgdi:waypoint x="1680.0" y="222.0162811279297"></omgdi:waypoint>
-        <omgdi:waypoint x="1680.0" y="255.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-D5B0EDC0-E1F6-4DF3-8769-47C8468EFED2" id="BPMNEdge_sid-D5B0EDC0-E1F6-4DF3-8769-47C8468EFED2">
-        <omgdi:waypoint x="220.0" y="295.2164502164502"></omgdi:waypoint>
-        <omgdi:waypoint x="265.4130434782609" y="295.4130434782609"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-455CD566-BEC9-47A8-B2AF-82FCC95C4672" id="BPMNEdge_sid-455CD566-BEC9-47A8-B2AF-82FCC95C4672">
-        <omgdi:waypoint x="1196.173671920259" y="286.1736719202591"></omgdi:waypoint>
-        <omgdi:waypoint x="1294.7779541015625" y="200.01626586914062"></omgdi:waypoint>
-        <omgdi:waypoint x="1408.6268157101256" y="286.3731842898745"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-34A1DB02-4A55-455D-A459-42572200C8DB" id="BPMNEdge_sid-34A1DB02-4A55-455D-A459-42572200C8DB">
-        <omgdi:waypoint x="1185.3005601611103" y="314.6994398388897"></omgdi:waypoint>
-        <omgdi:waypoint x="1184.736328125" y="369.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="169.73635864257812" y="366.0162658691406"></omgdi:waypoint>
-        <omgdi:waypoint x="169.85150367781506" y="335.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" id="BPMNEdge_sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D">
-        <omgdi:waypoint x="799.9999999999999" y="295.00000000000006"></omgdi:waypoint>
-        <omgdi:waypoint x="819.9999999999999" y="295.0000000000001"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-E19E2941-6B2A-4114-B292-5D789BA0959A" id="BPMNEdge_sid-E19E2941-6B2A-4114-B292-5D789BA0959A">
-        <omgdi:waypoint x="1204.579831932773" y="295.4201680672269"></omgdi:waypoint>
-        <omgdi:waypoint x="1255.0" y="295.20920502092054"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-5DF00195-C2A6-4F61-A585-A29C83728B82" id="BPMNEdge_sid-5DF00195-C2A6-4F61-A585-A29C83728B82">
-        <omgdi:waypoint x="285.5" y="275.5"></omgdi:waypoint>
-        <omgdi:waypoint x="285.5" y="230.0162811279297"></omgdi:waypoint>
-        <omgdi:waypoint x="540.0" y="230.0162811279297"></omgdi:waypoint>
-        <omgdi:waypoint x="540.0" y="255.00000000000003"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-D6D3EE5B-D83D-4D08-A781-CCCEB6AF9412" id="BPMNEdge_sid-D6D3EE5B-D83D-4D08-A781-CCCEB6AF9412">
-        <omgdi:waypoint x="455.0" y="295.0"></omgdi:waypoint>
-        <omgdi:waypoint x="490.0" y="295.0"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-      <bpmndi:BPMNEdge bpmnElement="sid-F5F08BDE-2393-4D89-85D3-C40C6199CF5B" id="BPMNEdge_sid-F5F08BDE-2393-4D89-85D3-C40C6199CF5B">
-        <omgdi:waypoint x="1439.5833333333333" y="295.4166666666667"></omgdi:waypoint>
-        <omgdi:waypoint x="1485.0" y="295.2183406113537"></omgdi:waypoint>
-      </bpmndi:BPMNEdge>
-    </bpmndi:BPMNPlane>
-  </bpmndi:BPMNDiagram>
-</definitions>
+    <process id="oil_enuser_append_apply" name="oil_enuser_append_apply" isExecutable="true">
+        <documentation>增项审批流程</documentation>
+        <startEvent id="sid-9A4918D7-8376-4A00-928A-6415D92565EC" name="开始"></startEvent>
+        <userTask id="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" name="二级单位分办" activiti:candidateUsers="${users}"></userTask>
+        <userTask id="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" name="业务处室专业审批" activiti:candidateUsers="${users}">
+            <extensionElements>
+                <activiti:taskListener event="create" delegateExpression="${appendPreProfAuditService}"></activiti:taskListener>
+            </extensionElements>
+        </userTask>
+        <userTask id="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" name="二级单位复审" activiti:candidateUsers="${users}">
+            <extensionElements>
+                <activiti:taskListener event="create" delegateExpression="${appendPreSecondTrailService}"></activiti:taskListener>
+            </extensionElements>
+        </userTask>
+        <exclusiveGateway id="sid-E178BD57-68C0-4C23-8952-143905257209"></exclusiveGateway>
+        <userTask id="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" name="二级单位初审" activiti:candidateUsers="${users}">
+            <extensionElements>
+                <activiti:taskListener event="create" delegateExpression="${appendPreFirstTrailService}"></activiti:taskListener>
+            </extensionElements>
+        </userTask>
+        <exclusiveGateway id="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></exclusiveGateway>
+        <endEvent id="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${appendWorkflowEndService}"></activiti:executionListener>
+            </extensionElements>
+        </endEvent>
+        <userTask id="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" name="业务处室接收" activiti:candidateUsers="${users}">
+            <extensionElements>
+                <activiti:taskListener event="create" delegateExpression="${appendPreThirdTrialService}"></activiti:taskListener>
+            </extensionElements>
+        </userTask>
+        <userTask id="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" name="增项申请" activiti:assignee="${recorder}">
+            <extensionElements>
+                <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
+            </extensionElements>
+        </userTask>
+        <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-2A034CD8-BB86-4783-97D9-DBAE8D4A7199" sourceRef="sid-9A4918D7-8376-4A00-928A-6415D92565EC" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E"></sequenceFlow>
+        <sequenceFlow id="sid-D6D3EE5B-D83D-4D08-A781-CCCEB6AF9412" sourceRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" targetRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF"></sequenceFlow>
+        <exclusiveGateway id="sid-23C9D008-0522-4173-924B-616B0B9E2A1B"></exclusiveGateway>
+        <userTask id="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77" name="交费" activiti:candidateUsers="${users}">
+            <extensionElements>
+                <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>
+            </extensionElements>
+        </userTask>
+        <sequenceFlow id="sid-31F41F5A-DC38-48A4-AB39-6CCAC30C2B39" sourceRef="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77" targetRef="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C"></sequenceFlow>
+        <sequenceFlow id="sid-3A36FF73-424D-4C84-9519-826C52CC9091" sourceRef="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C" targetRef="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D"></sequenceFlow>
+        <exclusiveGateway id="sid-ACC9707A-EFE4-4980-988B-5F87083CE851"></exclusiveGateway>
+        <sequenceFlow id="sid-D5B0EDC0-E1F6-4DF3-8769-47C8468EFED2" sourceRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" targetRef="sid-ACC9707A-EFE4-4980-988B-5F87083CE851"></sequenceFlow>
+        <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>
+        <sequenceFlow id="sid-5DF00195-C2A6-4F61-A585-A29C83728B82" name="二级单位申请" sourceRef="sid-ACC9707A-EFE4-4980-988B-5F87083CE851" targetRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF">
+            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==2}]]></conditionExpression>
+        </sequenceFlow>
+        <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">
+            <extensionElements>
+                <activiti:executionListener event="start" delegateExpression="${appendCheckNeedPayService}"></activiti:executionListener>
+            </extensionElements>
+        </sequenceFlow>
+    </process>
+    <bpmndi:BPMNDiagram id="BPMNDiagram_oil_enuser_append_apply">
+        <bpmndi:BPMNPlane bpmnElement="oil_enuser_append_apply" id="BPMNPlane_oil_enuser_append_apply">
+            <bpmndi:BPMNShape bpmnElement="sid-9A4918D7-8376-4A00-928A-6415D92565EC" id="BPMNShape_sid-9A4918D7-8376-4A00-928A-6415D92565EC">
+                <omgdc:Bounds height="30.0" width="30.0" x="55.0" y="280.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" id="BPMNShape_sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397">
+                <omgdc:Bounds height="80.0" width="100.0" x="355.0" y="255.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" id="BPMNShape_sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF">
+                <omgdc:Bounds height="79.99999999999994" width="100.0" x="1030.0" y="255.00000000000006"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" id="BPMNShape_sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
+                <omgdc:Bounds height="80.0" width="99.99999999999989" x="700.0" y="255.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-E178BD57-68C0-4C23-8952-143905257209" id="BPMNShape_sid-E178BD57-68C0-4C23-8952-143905257209">
+                <omgdc:Bounds height="40.0" width="40.0" x="820.0" y="275.0"></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.99999999999997" width="100.0" x="490.0" y="255.00000000000003"></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="625.0" y="275.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D" id="BPMNShape_sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D">
+                <omgdc:Bounds height="28.0" width="28.0" x="1540.0" y="281.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" id="BPMNShape_sid-C18EB968-3E14-4BAF-9DEF-D767CA546066">
+                <omgdc:Bounds height="80.0" width="100.0" x="895.0" y="255.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" id="BPMNShape_sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+                <omgdc:Bounds height="80.0" width="100.0" x="120.0" y="255.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-23C9D008-0522-4173-924B-616B0B9E2A1B" id="BPMNShape_sid-23C9D008-0522-4173-924B-616B0B9E2A1B">
+                <omgdc:Bounds height="40.0" width="40.0" x="1160.0" y="275.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77" id="BPMNShape_sid-7D1F719F-8AF4-449E-BD5E-767BCFDA0B77">
+                <omgdc:Bounds height="80.0" width="100.0" x="1245.0" y="255.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-3EA02700-4143-4282-A6C2-08CE0F38E76C" id="BPMNShape_sid-3EA02700-4143-4282-A6C2-08CE0F38E76C">
+                <omgdc:Bounds height="80.0" width="100.0" x="1390.0" y="255.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNShape bpmnElement="sid-ACC9707A-EFE4-4980-988B-5F87083CE851" id="BPMNShape_sid-ACC9707A-EFE4-4980-988B-5F87083CE851">
+                <omgdc:Bounds height="40.0" width="40.0" x="265.0" y="275.0"></omgdc:Bounds>
+            </bpmndi:BPMNShape>
+            <bpmndi:BPMNEdge bpmnElement="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" id="BPMNEdge_sid-2BD5B023-739C-4D78-8F49-F1B96336102D">
+                <omgdi:waypoint x="590.0" y="295.0"></omgdi:waypoint>
+                <omgdi:waypoint x="625.0" y="295.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-BE646B05-EF10-4029-BC3B-BCABCFF884B1" id="BPMNEdge_sid-BE646B05-EF10-4029-BC3B-BCABCFF884B1">
+                <omgdi:waypoint x="1130.0" y="295.00970873786406"></omgdi:waypoint>
+                <omgdi:waypoint x="1160.3039215686274" y="295.30392156862746"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-31F41F5A-DC38-48A4-AB39-6CCAC30C2B39" id="BPMNEdge_sid-31F41F5A-DC38-48A4-AB39-6CCAC30C2B39">
+                <omgdi:waypoint x="1345.0" y="295.0"></omgdi:waypoint>
+                <omgdi:waypoint x="1390.0" y="295.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-E20D16A1-7AC4-40EF-BAA3-FC171BF0F8D3" id="BPMNEdge_sid-E20D16A1-7AC4-40EF-BAA3-FC171BF0F8D3">
+                <omgdi:waypoint x="1180.5" y="314.5"></omgdi:waypoint>
+                <omgdi:waypoint x="1180.5" y="369.0162658691406"></omgdi:waypoint>
+                <omgdi:waypoint x="170.0" y="367.0162658691406"></omgdi:waypoint>
+                <omgdi:waypoint x="170.0" y="335.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-3A36FF73-424D-4C84-9519-826C52CC9091" id="BPMNEdge_sid-3A36FF73-424D-4C84-9519-826C52CC9091">
+                <omgdi:waypoint x="1490.0" y="295.0"></omgdi:waypoint>
+                <omgdi:waypoint x="1540.0" y="295.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-67A5C40B-EF7D-42AC-8543-BC1E0CB1BDE2" id="BPMNEdge_sid-67A5C40B-EF7D-42AC-8543-BC1E0CB1BDE2">
+                <omgdi:waypoint x="304.5798319327731" y="295.4201680672269"></omgdi:waypoint>
+                <omgdi:waypoint x="355.0" y="295.20920502092054"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-2A034CD8-BB86-4783-97D9-DBAE8D4A7199" id="BPMNEdge_sid-2A034CD8-BB86-4783-97D9-DBAE8D4A7199">
+                <omgdi:waypoint x="85.0" y="295.0"></omgdi:waypoint>
+                <omgdi:waypoint x="120.0" y="295.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" id="BPMNEdge_sid-C916BA74-384F-4684-8ADB-16EA158FDE07">
+                <omgdi:waypoint x="664.5913461538462" y="295.40865384615387"></omgdi:waypoint>
+                <omgdi:waypoint x="700.0" y="295.2392344497608"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-AA46B27B-7C3C-4586-BB9D-28AC48B16F5E" id="BPMNEdge_sid-AA46B27B-7C3C-4586-BB9D-28AC48B16F5E">
+                <omgdi:waypoint x="645.5" y="314.5"></omgdi:waypoint>
+                <omgdi:waypoint x="645.5" y="367.0162658691406"></omgdi:waypoint>
+                <omgdi:waypoint x="170.0" y="367.0162658691406"></omgdi:waypoint>
+                <omgdi:waypoint x="170.0" y="335.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-22C499F4-7179-4558-BC4C-77EF7453FA56" id="BPMNEdge_sid-22C499F4-7179-4558-BC4C-77EF7453FA56">
+                <omgdi:waypoint x="995.0" y="295.0"></omgdi:waypoint>
+                <omgdi:waypoint x="1030.0" y="295.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-8E11FCEE-5E6E-4C47-84E1-448933CB3E94" id="BPMNEdge_sid-8E11FCEE-5E6E-4C47-84E1-448933CB3E94">
+                <omgdi:waypoint x="840.2977806122774" y="314.70221938772255"></omgdi:waypoint>
+                <omgdi:waypoint x="839.736328125" y="368.0162658691406"></omgdi:waypoint>
+                <omgdi:waypoint x="170.0" y="366.0162658691406"></omgdi:waypoint>
+                <omgdi:waypoint x="170.0" y="335.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" id="BPMNEdge_sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11">
+                <omgdi:waypoint x="859.5913461538462" y="295.40865384615387"></omgdi:waypoint>
+                <omgdi:waypoint x="895.0" y="295.2392344497608"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-DE214B02-7077-42D9-99ED-6263C21BBBDE" id="BPMNEdge_sid-DE214B02-7077-42D9-99ED-6263C21BBBDE">
+                <omgdi:waypoint x="1180.5" y="275.5"></omgdi:waypoint>
+                <omgdi:waypoint x="1180.5" y="222.0162811279297"></omgdi:waypoint>
+                <omgdi:waypoint x="1440.0" y="222.0162811279297"></omgdi:waypoint>
+                <omgdi:waypoint x="1440.0" y="255.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-D5B0EDC0-E1F6-4DF3-8769-47C8468EFED2" id="BPMNEdge_sid-D5B0EDC0-E1F6-4DF3-8769-47C8468EFED2">
+                <omgdi:waypoint x="220.0" y="295.2164502164502"></omgdi:waypoint>
+                <omgdi:waypoint x="265.4130434782609" y="295.4130434782609"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" id="BPMNEdge_sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D">
+                <omgdi:waypoint x="799.9999999999999" y="295.00000000000006"></omgdi:waypoint>
+                <omgdi:waypoint x="819.9999999999999" y="295.0000000000001"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-5DF00195-C2A6-4F61-A585-A29C83728B82" id="BPMNEdge_sid-5DF00195-C2A6-4F61-A585-A29C83728B82">
+                <omgdi:waypoint x="285.5" y="275.5"></omgdi:waypoint>
+                <omgdi:waypoint x="285.5" y="230.0162811279297"></omgdi:waypoint>
+                <omgdi:waypoint x="540.0" y="230.0162811279297"></omgdi:waypoint>
+                <omgdi:waypoint x="540.0" y="255.00000000000003"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-D6D3EE5B-D83D-4D08-A781-CCCEB6AF9412" id="BPMNEdge_sid-D6D3EE5B-D83D-4D08-A781-CCCEB6AF9412">
+                <omgdi:waypoint x="455.0" y="295.0"></omgdi:waypoint>
+                <omgdi:waypoint x="490.0" y="295.0"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+            <bpmndi:BPMNEdge bpmnElement="sid-F5F08BDE-2393-4D89-85D3-C40C6199CF5B" id="BPMNEdge_sid-F5F08BDE-2393-4D89-85D3-C40C6199CF5B">
+                <omgdi:waypoint x="1199.5833333333333" y="295.4166666666667"></omgdi:waypoint>
+                <omgdi:waypoint x="1245.0" y="295.2183406113537"></omgdi:waypoint>
+            </bpmndi:BPMNEdge>
+        </bpmndi:BPMNPlane>
+    </bpmndi:BPMNDiagram>
+</definitions>