<?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.activiti.org/test"> <process id="soilder_submit" name="士兵休假审批" isExecutable="true"> <startEvent id="startevent1" name="Start"></startEvent> <userTask id="usertask1" name="填写表单申请" activiti:assignee="张三"></userTask> <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1"></sequenceFlow> <endEvent id="endevent1" name="End"></endEvent> <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway> <sequenceFlow id="flow4" sourceRef="usertask1" targetRef="exclusivegateway1"></sequenceFlow> <userTask id="usertask2" name="连队主官审批" activiti:assignee="王五"></userTask> <userTask id="usertask3" name="军务股审批" activiti:assignee="李四"></userTask> <sequenceFlow id="flow5" sourceRef="exclusivegateway1" targetRef="usertask3" skipExpression="${soilderType>0}"></sequenceFlow> <sequenceFlow id="flow6" sourceRef="exclusivegateway1" targetRef="usertask2" skipExpression="${soilderType==0}"></sequenceFlow> <sequenceFlow id="flow8" name="驳回" sourceRef="usertask3" targetRef="usertask1" skipExpression="${approvalCode > 400}"> <conditionExpression xsi:type="tFormalExpression"><![CDATA[驳回]]></conditionExpression> </sequenceFlow> <sequenceFlow id="flow9" name="驳回" sourceRef="usertask2" targetRef="usertask1" skipExpression="${approvalCode > 400}"></sequenceFlow> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_soilder_submit"> <bpmndi:BPMNPlane bpmnElement="soilder_submit" id="BPMNPlane_soilder_submit"> <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"> <omgdc:Bounds height="35.0" width="35.0" x="60.0" y="130.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1"> <omgdc:Bounds height="55.0" width="105.0" x="160.0" y="120.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"> <omgdc:Bounds height="35.0" width="35.0" x="900.0" y="142.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1"> <omgdc:Bounds height="40.0" width="40.0" x="410.0" y="127.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2"> <omgdc:Bounds height="55.0" width="105.0" x="560.0" y="60.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3"> <omgdc:Bounds height="55.0" width="105.0" x="560.0" y="200.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"> <omgdi:waypoint x="95.0" y="147.0"></omgdi:waypoint> <omgdi:waypoint x="160.0" y="147.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"> <omgdi:waypoint x="265.0" y="147.0"></omgdi:waypoint> <omgdi:waypoint x="340.0" y="147.0"></omgdi:waypoint> <omgdi:waypoint x="410.0" y="147.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5"> <omgdi:waypoint x="430.0" y="167.0"></omgdi:waypoint> <omgdi:waypoint x="430.0" y="227.0"></omgdi:waypoint> <omgdi:waypoint x="560.0" y="227.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6"> <omgdi:waypoint x="430.0" y="127.0"></omgdi:waypoint> <omgdi:waypoint x="430.0" y="87.0"></omgdi:waypoint> <omgdi:waypoint x="560.0" y="87.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8"> <omgdi:waypoint x="612.0" y="255.0"></omgdi:waypoint> <omgdi:waypoint x="612.0" y="360.0"></omgdi:waypoint> <omgdi:waypoint x="212.0" y="360.0"></omgdi:waypoint> <omgdi:waypoint x="212.0" y="175.0"></omgdi:waypoint> <bpmndi:BPMNLabel> <omgdc:Bounds height="14.0" width="100.0" x="390.0" y="369.0"></omgdc:Bounds> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9"> <omgdi:waypoint x="612.0" y="60.0"></omgdi:waypoint> <omgdi:waypoint x="612.0" y="38.0"></omgdi:waypoint> <omgdi:waypoint x="212.0" y="38.0"></omgdi:waypoint> <omgdi:waypoint x="212.0" y="120.0"></omgdi:waypoint> <bpmndi:BPMNLabel> <omgdc:Bounds height="14.0" width="100.0" x="351.0" y="41.0"></omgdc:Bounds> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>