maintenance.bpmn 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.activiti.org/test">
  3. <process id="maintenance" name="设备维修审批流程" isExecutable="true">
  4. <startEvent id="startmaintenance" name="开始" activiti:initiator="${applyUserId}"></startEvent>
  5. <userTask id="wxjlTask" name="装置维修经理" activiti:assignee="#{wxjlusers}"></userTask>
  6. <endEvent id="endmaintenance" name="End"></endEvent>
  7. <sequenceFlow id="flow1" sourceRef="startmaintenance" targetRef="wxjlTask"></sequenceFlow>
  8. <sequenceFlow id="flow2" name="通过" sourceRef="wxjlTask" targetRef="endmaintenance">
  9. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  10. </sequenceFlow>
  11. <endEvent id="endmaintenance2" name="End"></endEvent>
  12. <sequenceFlow id="flow3" name="不通过" sourceRef="wxjlTask" targetRef="endmaintenance2">
  13. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
  14. </sequenceFlow>
  15. </process>
  16. <bpmndi:BPMNDiagram id="BPMNDiagram_maintenance">
  17. <bpmndi:BPMNPlane bpmnElement="maintenance" id="BPMNPlane_maintenance">
  18. <bpmndi:BPMNShape bpmnElement="startmaintenance" id="BPMNShape_startmaintenance">
  19. <omgdc:Bounds height="35.0" width="35.0" x="70.0" y="60.0"></omgdc:Bounds>
  20. </bpmndi:BPMNShape>
  21. <bpmndi:BPMNShape bpmnElement="wxjlTask" id="BPMNShape_wxjlTask">
  22. <omgdc:Bounds height="55.0" width="105.0" x="170.0" y="50.0"></omgdc:Bounds>
  23. </bpmndi:BPMNShape>
  24. <bpmndi:BPMNShape bpmnElement="endmaintenance" id="BPMNShape_endmaintenance">
  25. <omgdc:Bounds height="35.0" width="35.0" x="340.0" y="60.0"></omgdc:Bounds>
  26. </bpmndi:BPMNShape>
  27. <bpmndi:BPMNShape bpmnElement="endmaintenance2" id="BPMNShape_endmaintenance2">
  28. <omgdc:Bounds height="35.0" width="35.0" x="205.0" y="140.0"></omgdc:Bounds>
  29. </bpmndi:BPMNShape>
  30. <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
  31. <omgdi:waypoint x="105.0" y="77.0"></omgdi:waypoint>
  32. <omgdi:waypoint x="170.0" y="77.0"></omgdi:waypoint>
  33. </bpmndi:BPMNEdge>
  34. <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
  35. <omgdi:waypoint x="275.0" y="77.0"></omgdi:waypoint>
  36. <omgdi:waypoint x="340.0" y="77.0"></omgdi:waypoint>
  37. <bpmndi:BPMNLabel>
  38. <omgdc:Bounds height="16.0" width="100.0" x="289.0" y="79.0"></omgdc:Bounds>
  39. </bpmndi:BPMNLabel>
  40. </bpmndi:BPMNEdge>
  41. <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
  42. <omgdi:waypoint x="222.0" y="105.0"></omgdi:waypoint>
  43. <omgdi:waypoint x="222.0" y="140.0"></omgdi:waypoint>
  44. <bpmndi:BPMNLabel>
  45. <omgdc:Bounds height="16.0" width="48.0" x="227.0" y="109.0"></omgdc:Bounds>
  46. </bpmndi:BPMNLabel>
  47. </bpmndi:BPMNEdge>
  48. </bpmndi:BPMNPlane>
  49. </bpmndi:BPMNDiagram>
  50. </definitions>