123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <?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/test">
- <process id="expense_account" name="财务报账审批流程" isExecutable="true">
- <startEvent id="start" name="启动审批" activiti:initiator="apply" activiti:formKey="/oa/expenseAccount/form"></startEvent>
- <endEvent id="end" name="结束审批"></endEvent>
- <userTask id="modify" name="报销申请修改" activiti:assignee="${apply}"></userTask>
- <userTask id="audit" name="部门主管审批" activiti:assignee="admin"></userTask>
- <exclusiveGateway id="sid-C28BB5F6-013D-4570-B432-61B380C1F46F"></exclusiveGateway>
- <userTask id="audit2" name="分管领导审批" activiti:assignee="admin"></userTask>
- <exclusiveGateway id="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0"></exclusiveGateway>
- <sequenceFlow id="sid-EF2F51BB-1D99-4F0B-ACF2-B6C1300A7D2B" sourceRef="audit2" targetRef="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0"></sequenceFlow>
- <userTask id="audit3" name="主要领导审批" activiti:assignee="admin"></userTask>
- <exclusiveGateway id="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4"></exclusiveGateway>
- <userTask id="audit4" name="财务会计审核" activiti:assignee="admin"></userTask>
- <exclusiveGateway id="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477"></exclusiveGateway>
- <userTask id="apply_end" name="出纳支付兑现" activiti:assignee="admin"></userTask>
- <sequenceFlow id="sid-2AB7C01A-50EE-4AAC-8C8F-F6E1935B3DA7" sourceRef="audit" targetRef="sid-C28BB5F6-013D-4570-B432-61B380C1F46F"></sequenceFlow>
- <sequenceFlow id="sid-36E50C8B-6C7C-4968-B02D-EBAA425BF4BE" sourceRef="start" targetRef="audit"></sequenceFlow>
- <sequenceFlow id="sid-53258502-43EE-4DE8-B1A4-DBD11922B8AF" name="否" sourceRef="sid-C28BB5F6-013D-4570-B432-61B380C1F46F" targetRef="modify">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==0}]]></conditionExpression>
- </sequenceFlow>
- <exclusiveGateway id="sid-5FED02D6-C388-48C6-870E-097DB2131EA0"></exclusiveGateway>
- <sequenceFlow id="sid-8448EF4A-B62E-4899-ABC2-0E2DB2AE6838" name="重新申请" sourceRef="sid-5FED02D6-C388-48C6-870E-097DB2131EA0" targetRef="audit">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-BDB0AAB2-7E50-4D35-80EE-CE0BECDD9F57" sourceRef="apply_end" targetRef="end"></sequenceFlow>
- <sequenceFlow id="sid-44AFB9C1-4057-4C48-B1F2-1EC897A52CB7" name="销毁" sourceRef="sid-5FED02D6-C388-48C6-870E-097DB2131EA0" targetRef="end">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==0}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-7D723190-1432-411D-A4A4-774225E54CD9" name="是" sourceRef="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477" targetRef="apply_end">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-02DB2AD9-1332-4198-AC8D-22A35169D15C" sourceRef="audit4" targetRef="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477"></sequenceFlow>
- <exclusiveGateway id="sid-100002"></exclusiveGateway>
- <sequenceFlow id="sid-D44CAD43-0271-4920-A524-9B8533E52550" name="是" sourceRef="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4" targetRef="audit4">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-35CC8C6C-1067-4398-991C-CCF955115965" name="否" sourceRef="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477" targetRef="modify">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==0}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-1525BFF4-3E9D-4D8A-BF80-1F63AFE16289" name="否" sourceRef="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4" targetRef="modify">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==0}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-3DBCD661-5720-4480-8156-748BE0275FEF" sourceRef="audit3" targetRef="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4"></sequenceFlow>
- <sequenceFlow id="sid-FA618636-3708-4D0C-8514-29A4BB8BC926" name="否" sourceRef="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0" targetRef="modify">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==0}]]></conditionExpression>
- </sequenceFlow>
- <exclusiveGateway id="sid-100006"></exclusiveGateway>
- <sequenceFlow id="sid-72258A41-203E-428C-B71D-CA3506252D73" name="是" sourceRef="sid-C28BB5F6-013D-4570-B432-61B380C1F46F" targetRef="sid-100006">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-163DBC60-DBC9-438B-971A-67738FB7715A" sourceRef="modify" targetRef="sid-5FED02D6-C388-48C6-870E-097DB2131EA0"></sequenceFlow>
- <sequenceFlow id="sid-100001" sourceRef="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0" targetRef="sid-100002">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-100004" name="金额>8000" sourceRef="sid-100002" targetRef="audit3">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sumExpense>8000}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-100003" name="金额<=8000" sourceRef="sid-100002" targetRef="audit4">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sumExpense<=8000}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-100008" name="金额<=3000" sourceRef="sid-100006" targetRef="audit4">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sumExpense<=3000}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="sid-100007" name="金额>3000" sourceRef="sid-100006" targetRef="audit2">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sumExpense>3000}]]></conditionExpression>
- </sequenceFlow>
- </process>
- <bpmndi:BPMNDiagram id="BPMNDiagram_expense_account">
- <bpmndi:BPMNPlane bpmnElement="expense_account" id="BPMNPlane_expense_account">
- <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
- <omgdc:Bounds height="30.0" width="30.0" x="30.0" y="245.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
- <omgdc:Bounds height="28.0" width="28.0" x="1095.0" y="436.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="modify" id="BPMNShape_modify">
- <omgdc:Bounds height="58.0" width="102.0" x="209.0" y="135.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="audit" id="BPMNShape_audit">
- <omgdc:Bounds height="57.0" width="96.0" x="105.0" y="231.5"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="sid-C28BB5F6-013D-4570-B432-61B380C1F46F" id="BPMNShape_sid-C28BB5F6-013D-4570-B432-61B380C1F46F">
- <omgdc:Bounds height="40.0" width="40.0" x="240.0" y="240.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="audit2" id="BPMNShape_audit2">
- <omgdc:Bounds height="80.0" width="100.0" x="210.0" y="410.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0" id="BPMNShape_sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0">
- <omgdc:Bounds height="40.0" width="40.0" x="345.0" y="430.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="audit3" id="BPMNShape_audit3">
- <omgdc:Bounds height="80.0" width="100.0" x="540.0" y="410.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4" id="BPMNShape_sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4">
- <omgdc:Bounds height="40.0" width="40.0" x="675.0" y="430.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="audit4" id="BPMNShape_audit4">
- <omgdc:Bounds height="80.0" width="100.0" x="750.0" y="410.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477" id="BPMNShape_sid-3F53B6BD-F8F3-496B-AC08-50630BD11477">
- <omgdc:Bounds height="40.0" width="40.0" x="885.0" y="430.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="apply_end" id="BPMNShape_apply_end">
- <omgdc:Bounds height="80.0" width="100.0" x="960.0" y="410.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="sid-5FED02D6-C388-48C6-870E-097DB2131EA0" id="BPMNShape_sid-5FED02D6-C388-48C6-870E-097DB2131EA0">
- <omgdc:Bounds height="40.0" width="40.0" x="240.0" y="45.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="sid-100002" id="BPMNShape_sid-100002">
- <omgdc:Bounds height="40.0" width="40.0" x="420.0" y="430.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="sid-100006" id="BPMNShape_sid-100006">
- <omgdc:Bounds height="40.0" width="40.0" x="240.0" y="315.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNEdge bpmnElement="sid-3DBCD661-5720-4480-8156-748BE0275FEF" id="BPMNEdge_sid-3DBCD661-5720-4480-8156-748BE0275FEF">
- <omgdi:waypoint x="640.0" y="450.0"></omgdi:waypoint>
- <omgdi:waypoint x="675.0" y="450.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-100001" id="BPMNEdge_sid-100001">
- <omgdi:waypoint x="384.5" y="450.5"></omgdi:waypoint>
- <omgdi:waypoint x="420.5" y="450.5"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-8448EF4A-B62E-4899-ABC2-0E2DB2AE6838" id="BPMNEdge_sid-8448EF4A-B62E-4899-ABC2-0E2DB2AE6838">
- <omgdi:waypoint x="240.0" y="65.0"></omgdi:waypoint>
- <omgdi:waypoint x="153.0" y="65.0"></omgdi:waypoint>
- <omgdi:waypoint x="153.0" y="231.5"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-44AFB9C1-4057-4C48-B1F2-1EC897A52CB7" id="BPMNEdge_sid-44AFB9C1-4057-4C48-B1F2-1EC897A52CB7">
- <omgdi:waypoint x="280.0" y="65.0"></omgdi:waypoint>
- <omgdi:waypoint x="1109.0" y="65.0"></omgdi:waypoint>
- <omgdi:waypoint x="1109.0" y="436.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-35CC8C6C-1067-4398-991C-CCF955115965" id="BPMNEdge_sid-35CC8C6C-1067-4398-991C-CCF955115965">
- <omgdi:waypoint x="905.0" y="430.0"></omgdi:waypoint>
- <omgdi:waypoint x="905.0" y="164.0"></omgdi:waypoint>
- <omgdi:waypoint x="311.0" y="164.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-EF2F51BB-1D99-4F0B-ACF2-B6C1300A7D2B" id="BPMNEdge_sid-EF2F51BB-1D99-4F0B-ACF2-B6C1300A7D2B">
- <omgdi:waypoint x="310.0" y="450.0"></omgdi:waypoint>
- <omgdi:waypoint x="345.0" y="450.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-7D723190-1432-411D-A4A4-774225E54CD9" id="BPMNEdge_sid-7D723190-1432-411D-A4A4-774225E54CD9">
- <omgdi:waypoint x="925.0" y="450.0"></omgdi:waypoint>
- <omgdi:waypoint x="960.0" y="450.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-100004" id="BPMNEdge_sid-100004">
- <omgdi:waypoint x="460.0" y="450.0"></omgdi:waypoint>
- <omgdi:waypoint x="540.0" y="450.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-FA618636-3708-4D0C-8514-29A4BB8BC926" id="BPMNEdge_sid-FA618636-3708-4D0C-8514-29A4BB8BC926">
- <omgdi:waypoint x="365.0" y="430.0"></omgdi:waypoint>
- <omgdi:waypoint x="365.0" y="164.0"></omgdi:waypoint>
- <omgdi:waypoint x="311.0" y="164.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-2AB7C01A-50EE-4AAC-8C8F-F6E1935B3DA7" id="BPMNEdge_sid-2AB7C01A-50EE-4AAC-8C8F-F6E1935B3DA7">
- <omgdi:waypoint x="201.0" y="260.0"></omgdi:waypoint>
- <omgdi:waypoint x="240.0" y="260.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-D44CAD43-0271-4920-A524-9B8533E52550" id="BPMNEdge_sid-D44CAD43-0271-4920-A524-9B8533E52550">
- <omgdi:waypoint x="715.0" y="450.0"></omgdi:waypoint>
- <omgdi:waypoint x="750.0" y="450.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-100003" id="BPMNEdge_sid-100003">
- <omgdi:waypoint x="441.3222961425781" y="431.3222961425781"></omgdi:waypoint>
- <omgdi:waypoint x="441.3222961425781" y="537.0"></omgdi:waypoint>
- <omgdi:waypoint x="785.8818167512524" y="537.0"></omgdi:waypoint>
- <omgdi:waypoint x="785.8818167512524" y="490.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-36E50C8B-6C7C-4968-B02D-EBAA425BF4BE" id="BPMNEdge_sid-36E50C8B-6C7C-4968-B02D-EBAA425BF4BE">
- <omgdi:waypoint x="60.0" y="260.0"></omgdi:waypoint>
- <omgdi:waypoint x="105.0" y="260.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-02DB2AD9-1332-4198-AC8D-22A35169D15C" id="BPMNEdge_sid-02DB2AD9-1332-4198-AC8D-22A35169D15C">
- <omgdi:waypoint x="850.0" y="450.0"></omgdi:waypoint>
- <omgdi:waypoint x="885.0" y="450.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-100008" id="BPMNEdge_sid-100008">
- <omgdi:waypoint x="240.5" y="335.5"></omgdi:waypoint>
- <omgdi:waypoint x="152.0" y="335.5"></omgdi:waypoint>
- <omgdi:waypoint x="152.0" y="574.0"></omgdi:waypoint>
- <omgdi:waypoint x="812.6465896573459" y="574.0"></omgdi:waypoint>
- <omgdi:waypoint x="812.6465896573459" y="490.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-100007" id="BPMNEdge_sid-100007">
- <omgdi:waypoint x="260.5" y="354.5"></omgdi:waypoint>
- <omgdi:waypoint x="260.5" y="410.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-163DBC60-DBC9-438B-971A-67738FB7715A" id="BPMNEdge_sid-163DBC60-DBC9-438B-971A-67738FB7715A">
- <omgdi:waypoint x="260.0" y="135.0"></omgdi:waypoint>
- <omgdi:waypoint x="260.0" y="85.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-53258502-43EE-4DE8-B1A4-DBD11922B8AF" id="BPMNEdge_sid-53258502-43EE-4DE8-B1A4-DBD11922B8AF">
- <omgdi:waypoint x="260.0" y="240.0"></omgdi:waypoint>
- <omgdi:waypoint x="260.0" y="193.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-BDB0AAB2-7E50-4D35-80EE-CE0BECDD9F57" id="BPMNEdge_sid-BDB0AAB2-7E50-4D35-80EE-CE0BECDD9F57">
- <omgdi:waypoint x="1060.0" y="450.0"></omgdi:waypoint>
- <omgdi:waypoint x="1095.0" y="450.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-1525BFF4-3E9D-4D8A-BF80-1F63AFE16289" id="BPMNEdge_sid-1525BFF4-3E9D-4D8A-BF80-1F63AFE16289">
- <omgdi:waypoint x="695.0" y="430.0"></omgdi:waypoint>
- <omgdi:waypoint x="695.0" y="164.0"></omgdi:waypoint>
- <omgdi:waypoint x="311.0" y="164.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="sid-72258A41-203E-428C-B71D-CA3506252D73" id="BPMNEdge_sid-72258A41-203E-428C-B71D-CA3506252D73">
- <omgdi:waypoint x="260.0" y="280.0"></omgdi:waypoint>
- <omgdi:waypoint x="260.0" y="315.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- </bpmndi:BPMNPlane>
- </bpmndi:BPMNDiagram>
- </definitions>
|