cl
2024-05-23 ba1a7a9ef126296e2798e313dc5b43f775a1123c
提交 | 用户 | 时间
71e81e 1 <?xml version="1.0" encoding="UTF-8"?>
2 <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.stylefeng.cn/">
3   <process id="KEY_leave" name="请假流程" isExecutable="true">
4     <startEvent id="start" name="开始"></startEvent>
5     <endEvent id="end" name="结束"></endEvent>
6     <userTask id="QJ1" name="请假提交" activiti:assignee="#{username}">
7       <extensionElements>
8         <activiti:taskListener event="create" class="cn.stylefeng.guns.workflow.modular.listener.ManagerTaskHandler"></activiti:taskListener>
9         <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
10       </extensionElements>
11     </userTask>
12     <userTask id="QJ2" name="经理审批" activiti:assignee="1">
13       <extensionElements>
14         <activiti:taskListener event="create" class="cn.stylefeng.guns.workflow.modular.listener.ManagerTaskHandler"></activiti:taskListener>
15         <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
16       </extensionElements>
17     </userTask>
18     <userTask id="QJ3" name="总经理审批" activiti:assignee="5">
19       <extensionElements>
20         <activiti:taskListener event="create" class="cn.stylefeng.guns.workflow.modular.listener.ManagerTaskHandler"></activiti:taskListener>
21         <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
22       </extensionElements>
23     </userTask>
24     <exclusiveGateway id="pt1" name="批准or驳回"></exclusiveGateway>
25     <exclusiveGateway id="pt2" name="批准or驳回"></exclusiveGateway>
26     <sequenceFlow id="flow1" name="启动" sourceRef="start" targetRef="QJ1"></sequenceFlow>
27     <sequenceFlow id="flow3" sourceRef="QJ2" targetRef="pt1"></sequenceFlow>
28     <sequenceFlow id="flow2" name="提交" sourceRef="QJ1" targetRef="QJ2"></sequenceFlow>
29     <sequenceFlow id="flow6" sourceRef="QJ3" targetRef="pt2"></sequenceFlow>
30     <sequenceFlow id="flow4" name="驳回" sourceRef="pt1" targetRef="QJ1">
31       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${RESULT == "驳回"}]]></conditionExpression>
32     </sequenceFlow>
33     <sequenceFlow id="flow5" name="批准" sourceRef="pt1" targetRef="QJ3">
34       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${RESULT == "批准"}]]></conditionExpression>
35     </sequenceFlow>
36     <sequenceFlow id="flow8" name="批准" sourceRef="pt2" targetRef="end">
37       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${RESULT == "批准"}]]></conditionExpression>
38     </sequenceFlow>
39     <sequenceFlow id="flow7" name="驳回" sourceRef="pt2" targetRef="QJ1">
40       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${RESULT == "驳回"}]]></conditionExpression>
41     </sequenceFlow>
42   </process>
43   <bpmndi:BPMNDiagram id="BPMNDiagram_KEY_leave">
44     <bpmndi:BPMNPlane bpmnElement="KEY_leave" id="BPMNPlane_KEY_leave">
45       <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
46         <omgdc:Bounds height="30.0" width="30.0" x="30.0" y="130.0"></omgdc:Bounds>
47       </bpmndi:BPMNShape>
48       <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
49         <omgdc:Bounds height="28.0" width="28.0" x="660.0" y="231.0"></omgdc:Bounds>
50       </bpmndi:BPMNShape>
51       <bpmndi:BPMNShape bpmnElement="QJ1" id="BPMNShape_QJ1">
52         <omgdc:Bounds height="80.0" width="100.0" x="150.0" y="105.0"></omgdc:Bounds>
53       </bpmndi:BPMNShape>
54       <bpmndi:BPMNShape bpmnElement="QJ2" id="BPMNShape_QJ2">
55         <omgdc:Bounds height="80.0" width="100.0" x="315.0" y="15.0"></omgdc:Bounds>
56       </bpmndi:BPMNShape>
57       <bpmndi:BPMNShape bpmnElement="QJ3" id="BPMNShape_QJ3">
58         <omgdc:Bounds height="80.0" width="100.0" x="480.0" y="105.0"></omgdc:Bounds>
59       </bpmndi:BPMNShape>
60       <bpmndi:BPMNShape bpmnElement="pt1" id="BPMNShape_pt1">
61         <omgdc:Bounds height="40.0" width="40.0" x="345.0" y="125.0"></omgdc:Bounds>
62       </bpmndi:BPMNShape>
63       <bpmndi:BPMNShape bpmnElement="pt2" id="BPMNShape_pt2">
64         <omgdc:Bounds height="40.0" width="40.0" x="510.0" y="225.0"></omgdc:Bounds>
65       </bpmndi:BPMNShape>
66       <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
67         <omgdi:waypoint x="60.0" y="145.0"></omgdi:waypoint>
68         <omgdi:waypoint x="150.0" y="145.0"></omgdi:waypoint>
69       </bpmndi:BPMNEdge>
70       <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
71         <omgdi:waypoint x="200.0" y="105.0"></omgdi:waypoint>
72         <omgdi:waypoint x="200.0" y="55.0"></omgdi:waypoint>
73         <omgdi:waypoint x="315.0" y="55.0"></omgdi:waypoint>
74       </bpmndi:BPMNEdge>
75       <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
76         <omgdi:waypoint x="365.0" y="95.0"></omgdi:waypoint>
77         <omgdi:waypoint x="365.0" y="125.0"></omgdi:waypoint>
78       </bpmndi:BPMNEdge>
79       <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
80         <omgdi:waypoint x="345.0" y="145.0"></omgdi:waypoint>
81         <omgdi:waypoint x="250.0" y="145.0"></omgdi:waypoint>
82       </bpmndi:BPMNEdge>
83       <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
84         <omgdi:waypoint x="385.0" y="145.0"></omgdi:waypoint>
85         <omgdi:waypoint x="480.0" y="145.0"></omgdi:waypoint>
86       </bpmndi:BPMNEdge>
87       <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
88         <omgdi:waypoint x="530.0" y="185.0"></omgdi:waypoint>
89         <omgdi:waypoint x="530.0" y="225.0"></omgdi:waypoint>
90       </bpmndi:BPMNEdge>
91       <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
92         <omgdi:waypoint x="510.0" y="245.0"></omgdi:waypoint>
93         <omgdi:waypoint x="200.0" y="245.0"></omgdi:waypoint>
94         <omgdi:waypoint x="200.0" y="185.0"></omgdi:waypoint>
95       </bpmndi:BPMNEdge>
96       <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
97         <omgdi:waypoint x="550.0" y="245.0"></omgdi:waypoint>
98         <omgdi:waypoint x="660.0" y="245.0"></omgdi:waypoint>
99       </bpmndi:BPMNEdge>
100     </bpmndi:BPMNPlane>
101   </bpmndi:BPMNDiagram>
102 </definitions>