|
@@ -1,126 +0,0 @@
|
|
|
-<?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="myProcess2" name="My process" isExecutable="true">
|
|
|
- <startEvent id="startevent1" name="Start"></startEvent>
|
|
|
- <userTask id="usertask1" name="请假申请" activiti:assignee="${userId}"></userTask>
|
|
|
- <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1"></sequenceFlow>
|
|
|
- <endEvent id="endevent1" name="End"></endEvent>
|
|
|
- <userTask id="managerApprove" name="主管审批" activiti:assignee="${approveId}"></userTask>
|
|
|
- <userTask id="bossApprove" name="总监审批" activiti:assignee="${assigneeId}"></userTask>
|
|
|
- <exclusiveGateway id="exclusivegateway6" name="主管审批"></exclusiveGateway>
|
|
|
- <sequenceFlow id="flow24" sourceRef="managerApprove" targetRef="exclusivegateway6"></sequenceFlow>
|
|
|
- <sequenceFlow id="flow25" name="不通过" sourceRef="exclusivegateway6" targetRef="endevent1">
|
|
|
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${approve == 0}]]></conditionExpression>
|
|
|
- </sequenceFlow>
|
|
|
- <sequenceFlow id="flow26" name="通过" sourceRef="exclusivegateway6" targetRef="bossApprove">
|
|
|
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${approve == 1}]]></conditionExpression>
|
|
|
- </sequenceFlow>
|
|
|
- <exclusiveGateway id="exclusivegateway7" name="总监审批"></exclusiveGateway>
|
|
|
- <sequenceFlow id="flow27" sourceRef="bossApprove" targetRef="exclusivegateway7"></sequenceFlow>
|
|
|
- <sequenceFlow id="flow28" name="驳回" sourceRef="exclusivegateway7" targetRef="usertask1">
|
|
|
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${assignee == 0}]]></conditionExpression>
|
|
|
- </sequenceFlow>
|
|
|
- <sequenceFlow id="flow29" name="通过" sourceRef="exclusivegateway7" targetRef="endevent1">
|
|
|
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${assignee == 1}]]></conditionExpression>
|
|
|
- </sequenceFlow>
|
|
|
- <exclusiveGateway id="exclusivegateway8" name="用户申请"></exclusiveGateway>
|
|
|
- <sequenceFlow id="flow30" sourceRef="usertask1" targetRef="exclusivegateway8"></sequenceFlow>
|
|
|
- <sequenceFlow id="flow31" name="通过" sourceRef="exclusivegateway8" targetRef="managerApprove">
|
|
|
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${user == 1}]]></conditionExpression>
|
|
|
- </sequenceFlow>
|
|
|
- <sequenceFlow id="flow32" name="不通过" sourceRef="exclusivegateway8" targetRef="endevent1">
|
|
|
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${user == 0}]]></conditionExpression>
|
|
|
- </sequenceFlow>
|
|
|
- </process>
|
|
|
- <bpmndi:BPMNDiagram id="BPMNDiagram_myProcess2">
|
|
|
- <bpmndi:BPMNPlane bpmnElement="myProcess2" id="BPMNPlane_myProcess2">
|
|
|
- <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
|
|
|
- <omgdc:Bounds height="35.0" width="35.0" x="247.0" y="1.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
|
|
|
- <omgdc:Bounds height="55.0" width="105.0" x="212.0" y="90.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
|
|
|
- <omgdc:Bounds height="35.0" width="35.0" x="243.0" y="350.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNShape bpmnElement="managerApprove" id="BPMNShape_managerApprove">
|
|
|
- <omgdc:Bounds height="55.0" width="105.0" x="90.0" y="220.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNShape bpmnElement="bossApprove" id="BPMNShape_bossApprove">
|
|
|
- <omgdc:Bounds height="55.0" width="105.0" x="330.0" y="220.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNShape bpmnElement="exclusivegateway6" id="BPMNShape_exclusivegateway6">
|
|
|
- <omgdc:Bounds height="40.0" width="40.0" x="240.0" y="228.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
|
|
|
- <omgdc:Bounds height="40.0" width="40.0" x="480.0" y="228.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNShape bpmnElement="exclusivegateway8" id="BPMNShape_exclusivegateway8">
|
|
|
- <omgdc:Bounds height="40.0" width="40.0" x="122.0" y="97.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNShape>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
|
|
|
- <omgdi:waypoint x="264.0" y="36.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="264.0" y="90.0"></omgdi:waypoint>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
|
|
|
- <omgdi:waypoint x="195.0" y="247.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="240.0" y="248.0"></omgdi:waypoint>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
|
|
|
- <omgdi:waypoint x="260.0" y="268.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="260.0" y="350.0"></omgdi:waypoint>
|
|
|
- <bpmndi:BPMNLabel>
|
|
|
- <omgdc:Bounds height="16.0" width="33.0" x="260.0" y="268.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNLabel>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
|
|
|
- <omgdi:waypoint x="280.0" y="248.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="330.0" y="247.0"></omgdi:waypoint>
|
|
|
- <bpmndi:BPMNLabel>
|
|
|
- <omgdc:Bounds height="16.0" width="22.0" x="280.0" y="248.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNLabel>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
|
|
|
- <omgdi:waypoint x="435.0" y="247.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="480.0" y="248.0"></omgdi:waypoint>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow28" id="BPMNEdge_flow28">
|
|
|
- <omgdi:waypoint x="500.0" y="228.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="500.0" y="117.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="317.0" y="117.0"></omgdi:waypoint>
|
|
|
- <bpmndi:BPMNLabel>
|
|
|
- <omgdc:Bounds height="16.0" width="22.0" x="500.0" y="228.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNLabel>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29">
|
|
|
- <omgdi:waypoint x="500.0" y="268.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="499.0" y="367.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="278.0" y="367.0"></omgdi:waypoint>
|
|
|
- <bpmndi:BPMNLabel>
|
|
|
- <omgdc:Bounds height="16.0" width="22.0" x="500.0" y="268.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNLabel>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow30" id="BPMNEdge_flow30">
|
|
|
- <omgdi:waypoint x="212.0" y="117.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="162.0" y="117.0"></omgdi:waypoint>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow31" id="BPMNEdge_flow31">
|
|
|
- <omgdi:waypoint x="142.0" y="137.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="142.0" y="220.0"></omgdi:waypoint>
|
|
|
- <bpmndi:BPMNLabel>
|
|
|
- <omgdc:Bounds height="16.0" width="22.0" x="142.0" y="137.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNLabel>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- <bpmndi:BPMNEdge bpmnElement="flow32" id="BPMNEdge_flow32">
|
|
|
- <omgdi:waypoint x="122.0" y="117.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="54.0" y="117.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="54.0" y="248.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="54.0" y="367.0"></omgdi:waypoint>
|
|
|
- <omgdi:waypoint x="243.0" y="367.0"></omgdi:waypoint>
|
|
|
- <bpmndi:BPMNLabel>
|
|
|
- <omgdc:Bounds height="16.0" width="33.0" x="122.0" y="117.0"></omgdc:Bounds>
|
|
|
- </bpmndi:BPMNLabel>
|
|
|
- </bpmndi:BPMNEdge>
|
|
|
- </bpmndi:BPMNPlane>
|
|
|
- </bpmndi:BPMNDiagram>
|
|
|
-</definitions>
|