188 lines
12 KiB
XML
188 lines
12 KiB
XML
<?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.kafeitu.me/activiti">
|
|
<process id="conditionTest" name="请假流程-外置表单" isExecutable="true">
|
|
<documentation>《Activiti实战》第6章的例子--外置表单</documentation>
|
|
<extensionElements>
|
|
<activiti:executionListener event="start" delegateExpression="${execution.setVariable('leave', leaveEntityManager.newLeave(execution))}"></activiti:executionListener>
|
|
</extensionElements>
|
|
<startEvent id="startevent1" name="Start" activiti:initiator="applyUserId" activiti:formKey="chapter6/leave-timeLimit-money/leave-start.form"></startEvent>
|
|
<userTask id="deptLeaderVerify" name="部门经理审批" activiti:candidateGroups="deptLeader" activiti:formKey="chapter6/leave-timeLimit-money/approve-deptLeader.form">
|
|
<extensionElements>
|
|
<activiti:taskListener event="complete" expression="${leave.setDeptLeaderApproved(deptLeaderApproved)}"></activiti:taskListener>
|
|
</extensionElements>
|
|
</userTask>
|
|
<exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
|
|
<userTask id="hrVerify" name="人事经理审批" activiti:candidateGroups="hr" activiti:formKey="chapter6/leave-timeLimit-money/approve-hr.form"></userTask>
|
|
<exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
|
|
<endEvent id="endevent1" name="End"></endEvent>
|
|
<userTask id="modifyApply" name="调整申请内容" activiti:assignee="${applyUserId}" activiti:formKey="chapter6/leave-timeLimit-money/modify-apply.form"></userTask>
|
|
<exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
|
|
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="deptLeaderVerify"></sequenceFlow>
|
|
<sequenceFlow id="flow2" sourceRef="deptLeaderVerify" targetRef="exclusivegateway1"></sequenceFlow>
|
|
<sequenceFlow id="flow3" name="同意" sourceRef="exclusivegateway1" targetRef="hrVerify">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${deptLeaderApproved == 'true'}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="flow4" sourceRef="hrVerify" targetRef="exclusivegateway2"></sequenceFlow>
|
|
<sequenceFlow id="flow7" name="不同意" sourceRef="exclusivegateway2" targetRef="modifyApply">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrApproved == 'false'}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="flow8" name="不同意" sourceRef="exclusivegateway1" targetRef="modifyApply">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${deptLeaderApproved == 'true'}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="flow9" sourceRef="modifyApply" targetRef="exclusivegateway3"></sequenceFlow>
|
|
<sequenceFlow id="flow10" name="调整后继续申请" sourceRef="exclusivegateway3" targetRef="deptLeaderVerify">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${reApply == 'true'}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="flow11" name="取消申请,并设置取消标志" sourceRef="exclusivegateway3" targetRef="endevent1">
|
|
<extensionElements>
|
|
<activiti:executionListener event="take" expression="${execution.setVariable('result', 'canceled')}"></activiti:executionListener>
|
|
</extensionElements>
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${reApply == 'false'}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway"></exclusiveGateway>
|
|
<sequenceFlow id="flow12" name="同意" sourceRef="exclusivegateway2" targetRef="exclusivegateway4">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrApproved == 'true'}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<userTask id="usertask1" name="财务打款" activiti:candidateGroups="caiwu" activiti:dueDate="${moneyDateVariable}">
|
|
<documentation>倒计时30秒</documentation>
|
|
</userTask>
|
|
<sequenceFlow id="flow13" name="金额 >= 1万元" sourceRef="exclusivegateway4" targetRef="usertask1">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${amountMoney >= 10000}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<userTask id="usertask2" name="金额不够重新付款"></userTask>
|
|
<sequenceFlow id="flow14" name="金额 < 1万" sourceRef="exclusivegateway4" targetRef="usertask2">
|
|
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${amountMoney < 10000}]]></conditionExpression>
|
|
</sequenceFlow>
|
|
<userTask id="usertask3" name="打款完成" activiti:candidateGroups="chuNa"></userTask>
|
|
<sequenceFlow id="flow15" sourceRef="usertask1" targetRef="usertask3"></sequenceFlow>
|
|
<textAnnotation id="textannotation1" textFormat="text/plain">
|
|
<text>请求被驳回后员工可以选择继续申请,或者取消本次申请</text>
|
|
</textAnnotation>
|
|
<association id="association1" sourceRef="modifyApply" targetRef="textannotation1"></association>
|
|
</process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_conditionTest">
|
|
<bpmndi:BPMNPlane bpmnElement="conditionTest" id="BPMNPlane_conditionTest">
|
|
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
|
|
<omgdc:Bounds height="35.0" width="35.0" x="10.0" y="50.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="deptLeaderVerify" id="BPMNShape_deptLeaderVerify">
|
|
<omgdc:Bounds height="55.0" width="105.0" x="90.0" y="40.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
|
|
<omgdc:Bounds height="40.0" width="40.0" x="230.0" y="47.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="hrVerify" id="BPMNShape_hrVerify">
|
|
<omgdc:Bounds height="55.0" width="105.0" x="310.0" y="40.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
|
|
<omgdc:Bounds height="40.0" width="40.0" x="470.0" y="47.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
|
|
<omgdc:Bounds height="35.0" width="35.0" x="615.0" y="213.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="modifyApply" id="BPMNShape_modifyApply">
|
|
<omgdc:Bounds height="55.0" width="105.0" x="198.0" y="120.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="exclusivegateway3" id="BPMNShape_exclusivegateway3">
|
|
<omgdc:Bounds height="40.0" width="40.0" x="230.0" y="210.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="exclusivegateway4" id="BPMNShape_exclusivegateway4">
|
|
<omgdc:Bounds height="40.0" width="40.0" x="600.0" y="47.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
|
|
<omgdc:Bounds height="55.0" width="105.0" x="760.0" y="40.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
|
|
<omgdc:Bounds height="55.0" width="105.0" x="568.0" y="140.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
|
|
<omgdc:Bounds height="55.0" width="105.0" x="910.0" y="40.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape bpmnElement="textannotation1" id="BPMNShape_textannotation1">
|
|
<omgdc:Bounds height="57.0" width="112.0" x="340.0" y="168.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
|
|
<omgdi:waypoint x="45.0" y="67.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="90.0" y="67.0"></omgdi:waypoint>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
|
|
<omgdi:waypoint x="195.0" y="67.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="230.0" y="67.0"></omgdi:waypoint>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
|
|
<omgdi:waypoint x="270.0" y="67.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="310.0" y="67.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="42.0" width="22.0" x="269.0" y="50.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
|
|
<omgdi:waypoint x="415.0" y="67.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="470.0" y="67.0"></omgdi:waypoint>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
|
|
<omgdi:waypoint x="490.0" y="87.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="490.0" y="147.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="303.0" y="147.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="42.0" width="33.0" x="438.0" y="119.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
|
|
<omgdi:waypoint x="250.0" y="87.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="250.0" y="120.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="42.0" width="33.0" x="260.0" y="87.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
|
|
<omgdi:waypoint x="250.0" y="175.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="250.0" y="210.0"></omgdi:waypoint>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
|
|
<omgdi:waypoint x="230.0" y="230.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="142.0" y="230.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="142.0" y="95.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="42.0" width="77.0" x="159.0" y="210.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
|
|
<omgdi:waypoint x="270.0" y="230.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="615.0" y="230.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="42.0" width="100.0" x="58.0" y="-37.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
|
|
<omgdi:waypoint x="510.0" y="67.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="600.0" y="67.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="14.0" width="24.0" x="510.0" y="67.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13">
|
|
<omgdi:waypoint x="640.0" y="67.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="760.0" y="67.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="14.0" width="72.0" x="640.0" y="67.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
|
|
<omgdi:waypoint x="620.0" y="87.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="620.0" y="140.0"></omgdi:waypoint>
|
|
<bpmndi:BPMNLabel>
|
|
<omgdc:Bounds height="14.0" width="54.0" x="620.0" y="87.0"></omgdc:Bounds>
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
|
|
<omgdi:waypoint x="865.0" y="67.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="910.0" y="67.0"></omgdi:waypoint>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge bpmnElement="association1" id="BPMNEdge_association1">
|
|
<omgdi:waypoint x="303.0" y="147.0"></omgdi:waypoint>
|
|
<omgdi:waypoint x="396.0" y="168.0"></omgdi:waypoint>
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</definitions> |