leaveNew.bpmn 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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="leaveNew" 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"></startEvent>
  9. <userTask id="boosTask" name="老板审批" activiti:candidateUsers="120" activiti:formKey="leave_boos_form"></userTask>
  10. <sequenceFlow id="flow21" name="同意" sourceRef="exclusivegateway6" targetRef="boosTask">
  11. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrStatus=="1"}]]></conditionExpression>
  12. </sequenceFlow>
  13. <userTask id="userTask" name="用户填写请假信息" activiti:assignee="${appUserId}" activiti:formKey="leave_start_form"></userTask>
  14. <sequenceFlow id="flow24" sourceRef="startevent" targetRef="userTask"></sequenceFlow>
  15. <sequenceFlow id="flow25" sourceRef="userTask" targetRef="hrTask"></sequenceFlow>
  16. <sequenceFlow id="flow26" name="不同意" sourceRef="exclusivegateway6" targetRef="userTask" skipExpression="${hrStatus==&quot;0&quot;}"></sequenceFlow>
  17. <exclusiveGateway id="exclusivegateway7" name="Exclusive Gateway"></exclusiveGateway>
  18. <sequenceFlow id="flow27" sourceRef="boosTask" targetRef="exclusivegateway7"></sequenceFlow>
  19. <endEvent id="endevent1" name="End"></endEvent>
  20. <sequenceFlow id="flow28" name="同意" sourceRef="exclusivegateway7" targetRef="endevent1" skipExpression="${boosStatus==&quot;1&quot;}"></sequenceFlow>
  21. <sequenceFlow id="flow29" name="不同意" sourceRef="exclusivegateway7" targetRef="userTask" skipExpression="${boosStatus==&quot;0&quot;}"></sequenceFlow>
  22. </process>
  23. <bpmndi:BPMNDiagram id="BPMNDiagram_leaveNew">
  24. <bpmndi:BPMNPlane bpmnElement="leaveNew" id="BPMNPlane_leaveNew">
  25. <bpmndi:BPMNShape bpmnElement="hrTask" id="BPMNShape_hrTask">
  26. <omgdc:Bounds height="55.0" width="105.0" x="296.0" y="190.0"></omgdc:Bounds>
  27. </bpmndi:BPMNShape>
  28. <bpmndi:BPMNShape bpmnElement="exclusivegateway6" id="BPMNShape_exclusivegateway6">
  29. <omgdc:Bounds height="40.0" width="40.0" x="494.0" y="197.0"></omgdc:Bounds>
  30. </bpmndi:BPMNShape>
  31. <bpmndi:BPMNShape bpmnElement="startevent" id="BPMNShape_startevent">
  32. <omgdc:Bounds height="35.0" width="35.0" x="40.0" y="200.0"></omgdc:Bounds>
  33. </bpmndi:BPMNShape>
  34. <bpmndi:BPMNShape bpmnElement="boosTask" id="BPMNShape_boosTask">
  35. <omgdc:Bounds height="55.0" width="105.0" x="630.0" y="190.0"></omgdc:Bounds>
  36. </bpmndi:BPMNShape>
  37. <bpmndi:BPMNShape bpmnElement="userTask" id="BPMNShape_userTask">
  38. <omgdc:Bounds height="55.0" width="105.0" x="120.0" y="190.0"></omgdc:Bounds>
  39. </bpmndi:BPMNShape>
  40. <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
  41. <omgdc:Bounds height="40.0" width="40.0" x="820.0" y="197.0"></omgdc:Bounds>
  42. </bpmndi:BPMNShape>
  43. <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
  44. <omgdc:Bounds height="35.0" width="35.0" x="970.0" y="200.0"></omgdc:Bounds>
  45. </bpmndi:BPMNShape>
  46. <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
  47. <omgdi:waypoint x="401.0" y="217.0"></omgdi:waypoint>
  48. <omgdi:waypoint x="494.0" y="217.0"></omgdi:waypoint>
  49. </bpmndi:BPMNEdge>
  50. <bpmndi:BPMNEdge bpmnElement="flow21" id="BPMNEdge_flow21">
  51. <omgdi:waypoint x="534.0" y="217.0"></omgdi:waypoint>
  52. <omgdi:waypoint x="630.0" y="217.0"></omgdi:waypoint>
  53. <bpmndi:BPMNLabel>
  54. <omgdc:Bounds height="14.0" width="24.0" x="543.0" y="197.0"></omgdc:Bounds>
  55. </bpmndi:BPMNLabel>
  56. </bpmndi:BPMNEdge>
  57. <bpmndi:BPMNEdge bpmnElement="flow24" id="BPMNEdge_flow24">
  58. <omgdi:waypoint x="75.0" y="217.0"></omgdi:waypoint>
  59. <omgdi:waypoint x="120.0" y="217.0"></omgdi:waypoint>
  60. </bpmndi:BPMNEdge>
  61. <bpmndi:BPMNEdge bpmnElement="flow25" id="BPMNEdge_flow25">
  62. <omgdi:waypoint x="225.0" y="217.0"></omgdi:waypoint>
  63. <omgdi:waypoint x="296.0" y="217.0"></omgdi:waypoint>
  64. </bpmndi:BPMNEdge>
  65. <bpmndi:BPMNEdge bpmnElement="flow26" id="BPMNEdge_flow26">
  66. <omgdi:waypoint x="514.0" y="197.0"></omgdi:waypoint>
  67. <omgdi:waypoint x="514.0" y="118.0"></omgdi:waypoint>
  68. <omgdi:waypoint x="172.0" y="118.0"></omgdi:waypoint>
  69. <omgdi:waypoint x="172.0" y="190.0"></omgdi:waypoint>
  70. <bpmndi:BPMNLabel>
  71. <omgdc:Bounds height="14.0" width="100.0" x="280.0" y="131.0"></omgdc:Bounds>
  72. </bpmndi:BPMNLabel>
  73. </bpmndi:BPMNEdge>
  74. <bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27">
  75. <omgdi:waypoint x="735.0" y="217.0"></omgdi:waypoint>
  76. <omgdi:waypoint x="820.0" y="217.0"></omgdi:waypoint>
  77. </bpmndi:BPMNEdge>
  78. <bpmndi:BPMNEdge bpmnElement="flow28" id="BPMNEdge_flow28">
  79. <omgdi:waypoint x="860.0" y="217.0"></omgdi:waypoint>
  80. <omgdi:waypoint x="970.0" y="217.0"></omgdi:waypoint>
  81. <bpmndi:BPMNLabel>
  82. <omgdc:Bounds height="14.0" width="100.0" x="879.0" y="197.0"></omgdc:Bounds>
  83. </bpmndi:BPMNLabel>
  84. </bpmndi:BPMNEdge>
  85. <bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29">
  86. <omgdi:waypoint x="840.0" y="237.0"></omgdi:waypoint>
  87. <omgdi:waypoint x="840.0" y="378.0"></omgdi:waypoint>
  88. <omgdi:waypoint x="172.0" y="378.0"></omgdi:waypoint>
  89. <omgdi:waypoint x="172.0" y="245.0"></omgdi:waypoint>
  90. <bpmndi:BPMNLabel>
  91. <omgdc:Bounds height="14.0" width="100.0" x="445.0" y="359.0"></omgdc:Bounds>
  92. </bpmndi:BPMNLabel>
  93. </bpmndi:BPMNEdge>
  94. </bpmndi:BPMNPlane>
  95. </bpmndi:BPMNDiagram>
  96. </definitions>