Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

109 строки
7.0 KiB

  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"
  3. xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
  4. xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
  5. typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
  6. targetNamespace="http://www.flowable.org/processdef">
  7. <process id="Expense" name="ExpenseProcess" isExecutable="true">
  8. <documentation>报销流程</documentation>
  9. <startEvent id="start" name="开始"></startEvent>
  10. <userTask id="fillTask" name="出差报销" flowable:assignee="${taskUser}">
  11. <extensionElements>
  12. <modeler:initiator-can-complete xmlns:modeler="http://flowable.org/modeler">
  13. <![CDATA[false]]></modeler:initiator-can-complete>
  14. </extensionElements>
  15. </userTask>
  16. <exclusiveGateway id="judgeTask"></exclusiveGateway>
  17. <userTask id="directorTak" name="经理审批">
  18. <extensionElements>
  19. <flowable:taskListener event="create"
  20. class="com.iformall.flowable.ManagerTaskHandler"></flowable:taskListener>
  21. </extensionElements>
  22. </userTask>
  23. <userTask id="bossTask" name="老板审批">
  24. <extensionElements>
  25. <flowable:taskListener event="create"
  26. class="com.iformall.flowable.ContractTaskFinishHandler"></flowable:taskListener>
  27. </extensionElements>
  28. </userTask>
  29. <endEvent id="end" name="结束"></endEvent>
  30. <sequenceFlow id="directorNotPassFlow" name="驳回" sourceRef="directorTak" targetRef="fillTask">
  31. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='驳回'}]]></conditionExpression>
  32. </sequenceFlow>
  33. <sequenceFlow id="bossNotPassFlow" name="驳回" sourceRef="bossTask" targetRef="fillTask">
  34. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='驳回'}]]></conditionExpression>
  35. </sequenceFlow>
  36. <sequenceFlow id="flow1" sourceRef="start" targetRef="fillTask"></sequenceFlow>
  37. <sequenceFlow id="flow2" sourceRef="fillTask" targetRef="judgeTask"></sequenceFlow>
  38. <sequenceFlow id="judgeMore" name="大于500元" sourceRef="judgeTask" targetRef="bossTask">
  39. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money > 500}]]></conditionExpression>
  40. </sequenceFlow>
  41. <sequenceFlow id="bossPassFlow" name="通过" sourceRef="bossTask" targetRef="end">
  42. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='通过'}]]></conditionExpression>
  43. </sequenceFlow>
  44. <sequenceFlow id="directorPassFlow" name="通过" sourceRef="directorTak" targetRef="end">
  45. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outcome=='通过'}]]></conditionExpression>
  46. </sequenceFlow>
  47. <sequenceFlow id="judgeLess" name="小于500元" sourceRef="judgeTask" targetRef="directorTak">
  48. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money <= 500}]]></conditionExpression>
  49. </sequenceFlow>
  50. </process>
  51. <bpmndi:BPMNDiagram id="BPMNDiagram_Expense">
  52. <bpmndi:BPMNPlane bpmnElement="Expense" id="BPMNPlane_Expense">
  53. <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
  54. <omgdc:Bounds height="30.0" width="30.0" x="285.0" y="135.0"></omgdc:Bounds>
  55. </bpmndi:BPMNShape>
  56. <bpmndi:BPMNShape bpmnElement="fillTask" id="BPMNShape_fillTask">
  57. <omgdc:Bounds height="80.0" width="100.0" x="405.0" y="110.0"></omgdc:Bounds>
  58. </bpmndi:BPMNShape>
  59. <bpmndi:BPMNShape bpmnElement="judgeTask" id="BPMNShape_judgeTask">
  60. <omgdc:Bounds height="40.0" width="40.0" x="585.0" y="130.0"></omgdc:Bounds>
  61. </bpmndi:BPMNShape>
  62. <bpmndi:BPMNShape bpmnElement="directorTak" id="BPMNShape_directorTak">
  63. <omgdc:Bounds height="80.0" width="100.0" x="735.0" y="110.0"></omgdc:Bounds>
  64. </bpmndi:BPMNShape>
  65. <bpmndi:BPMNShape bpmnElement="bossTask" id="BPMNShape_bossTask">
  66. <omgdc:Bounds height="80.0" width="100.0" x="555.0" y="255.0"></omgdc:Bounds>
  67. </bpmndi:BPMNShape>
  68. <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
  69. <omgdc:Bounds height="28.0" width="28.0" x="771.0" y="281.0"></omgdc:Bounds>
  70. </bpmndi:BPMNShape>
  71. <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
  72. <omgdi:waypoint x="315.0" y="150.0"></omgdi:waypoint>
  73. <omgdi:waypoint x="405.0" y="150.0"></omgdi:waypoint>
  74. </bpmndi:BPMNEdge>
  75. <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
  76. <omgdi:waypoint x="505.0" y="150.16611295681062"></omgdi:waypoint>
  77. <omgdi:waypoint x="585.4333333333333" y="150.43333333333334"></omgdi:waypoint>
  78. </bpmndi:BPMNEdge>
  79. <bpmndi:BPMNEdge bpmnElement="judgeLess" id="BPMNEdge_judgeLess">
  80. <omgdi:waypoint x="624.5530726256983" y="150.44692737430168"></omgdi:waypoint>
  81. <omgdi:waypoint x="735.0" y="150.1392757660167"></omgdi:waypoint>
  82. </bpmndi:BPMNEdge>
  83. <bpmndi:BPMNEdge bpmnElement="directorNotPassFlow" id="BPMNEdge_directorNotPassFlow">
  84. <omgdi:waypoint x="785.0" y="110.0"></omgdi:waypoint>
  85. <omgdi:waypoint x="785.0" y="37.0"></omgdi:waypoint>
  86. <omgdi:waypoint x="455.0" y="37.0"></omgdi:waypoint>
  87. <omgdi:waypoint x="455.0" y="110.0"></omgdi:waypoint>
  88. </bpmndi:BPMNEdge>
  89. <bpmndi:BPMNEdge bpmnElement="bossPassFlow" id="BPMNEdge_bossPassFlow">
  90. <omgdi:waypoint x="655.0" y="295.0"></omgdi:waypoint>
  91. <omgdi:waypoint x="771.0" y="295.0"></omgdi:waypoint>
  92. </bpmndi:BPMNEdge>
  93. <bpmndi:BPMNEdge bpmnElement="judgeMore" id="BPMNEdge_judgeMore">
  94. <omgdi:waypoint x="605.4340277777778" y="169.56597222222223"></omgdi:waypoint>
  95. <omgdi:waypoint x="605.1384083044983" y="255.0"></omgdi:waypoint>
  96. </bpmndi:BPMNEdge>
  97. <bpmndi:BPMNEdge bpmnElement="directorPassFlow" id="BPMNEdge_directorPassFlow">
  98. <omgdi:waypoint x="785.0" y="190.0"></omgdi:waypoint>
  99. <omgdi:waypoint x="785.0" y="281.0"></omgdi:waypoint>
  100. </bpmndi:BPMNEdge>
  101. <bpmndi:BPMNEdge bpmnElement="bossNotPassFlow" id="BPMNEdge_bossNotPassFlow">
  102. <omgdi:waypoint x="555.0" y="295.0"></omgdi:waypoint>
  103. <omgdi:waypoint x="455.0" y="295.0"></omgdi:waypoint>
  104. <omgdi:waypoint x="455.0" y="190.0"></omgdi:waypoint>
  105. </bpmndi:BPMNEdge>
  106. </bpmndi:BPMNPlane>
  107. </bpmndi:BPMNDiagram>
  108. </definitions>