leave2 (2).bpmn 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.kafeitu.me/activiti/leave">
  3. <process id="leaveTest" name="测试普通表单" isExecutable="true">
  4. <documentation>请假流程演示</documentation>
  5. <userTask id="hrTask" name="人事审批" activiti:candidateGroups="117" activiti:formKey="leave_hr_form"></userTask>
  6. <exclusiveGateway id="exclusivegateway6" name="Exclusive Gateway"></exclusiveGateway>
  7. <sequenceFlow id="flow6" sourceRef="hrTask" targetRef="exclusivegateway6"></sequenceFlow>
  8. <startEvent id="startevent" name="Start" activiti:formKey="leave_start_form"></startEvent>
  9. <userTask id="boosTask" name="老板审批" activiti:candidateUsers="120" activiti:formKey="leave_boos_form"></userTask>
  10. <sequenceFlow id="flow18" sourceRef="startevent" targetRef="hrTask"></sequenceFlow>
  11. <sequenceFlow id="flow21" name="同意" sourceRef="exclusivegateway6" targetRef="boosTask">
  12. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrStatus=="1"}]]></conditionExpression>
  13. </sequenceFlow>
  14. <endEvent id="endevent1" name="End"></endEvent>
  15. <sequenceFlow id="flow22" name="不同意" sourceRef="exclusivegateway6" targetRef="endevent1">
  16. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrStatus=="0"}]]></conditionExpression>
  17. </sequenceFlow>
  18. <sequenceFlow id="flow23" sourceRef="boosTask" targetRef="endevent1"></sequenceFlow>
  19. </process>
  20. <bpmndi:BPMNDiagram id="BPMNDiagram_leaveTest">
  21. <bpmndi:BPMNPlane bpmnElement="leaveTest" id="BPMNPlane_leaveTest">
  22. <bpmndi:BPMNShape bpmnElement="hrTask" id="BPMNShape_hrTask">
  23. <omgdc:Bounds height="55.0" width="105.0" x="240.0" y="190.0"></omgdc:Bounds>
  24. </bpmndi:BPMNShape>
  25. <bpmndi:BPMNShape bpmnElement="exclusivegateway6" id="BPMNShape_exclusivegateway6">
  26. <omgdc:Bounds height="40.0" width="40.0" x="440.0" y="197.0"></omgdc:Bounds>
  27. </bpmndi:BPMNShape>
  28. <bpmndi:BPMNShape bpmnElement="startevent" id="BPMNShape_startevent">
  29. <omgdc:Bounds height="35.0" width="35.0" x="110.0" y="200.0"></omgdc:Bounds>
  30. </bpmndi:BPMNShape>
  31. <bpmndi:BPMNShape bpmnElement="boosTask" id="BPMNShape_boosTask">
  32. <omgdc:Bounds height="55.0" width="105.0" x="610.0" y="190.0"></omgdc:Bounds>
  33. </bpmndi:BPMNShape>
  34. <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
  35. <omgdc:Bounds height="35.0" width="35.0" x="443.0" y="350.0"></omgdc:Bounds>
  36. </bpmndi:BPMNShape>
  37. <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
  38. <omgdi:waypoint x="345.0" y="217.0"></omgdi:waypoint>
  39. <omgdi:waypoint x="440.0" y="217.0"></omgdi:waypoint>
  40. </bpmndi:BPMNEdge>
  41. <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
  42. <omgdi:waypoint x="145.0" y="217.0"></omgdi:waypoint>
  43. <omgdi:waypoint x="240.0" y="217.0"></omgdi:waypoint>
  44. </bpmndi:BPMNEdge>
  45. <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
  46. <omgdi:waypoint x="480.0" y="217.0"></omgdi:waypoint>
  47. <omgdi:waypoint x="610.0" y="217.0"></omgdi:waypoint>
  48. <bpmndi:BPMNLabel>
  49. <omgdc:Bounds height="14.0" width="24.0" x="489.0" y="197.0"></omgdc:Bounds>
  50. </bpmndi:BPMNLabel>
  51. </bpmndi:BPMNEdge>
  52. <bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22">
  53. <omgdi:waypoint x="460.0" y="237.0"></omgdi:waypoint>
  54. <omgdi:waypoint x="460.0" y="350.0"></omgdi:waypoint>
  55. <bpmndi:BPMNLabel>
  56. <omgdc:Bounds height="14.0" width="36.0" x="460.0" y="279.0"></omgdc:Bounds>
  57. </bpmndi:BPMNLabel>
  58. </bpmndi:BPMNEdge>
  59. <bpmndi:BPMNEdge bpmnElement="flow23" id="BPMNEdge_flow23">
  60. <omgdi:waypoint x="662.0" y="245.0"></omgdi:waypoint>
  61. <omgdi:waypoint x="662.0" y="367.0"></omgdi:waypoint>
  62. <omgdi:waypoint x="478.0" y="367.0"></omgdi:waypoint>
  63. </bpmndi:BPMNEdge>
  64. </bpmndi:BPMNPlane>
  65. </bpmndi:BPMNDiagram>
  66. </definitions>