一、 创建流程
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="确定旅游地点" name="确定旅游地点" isExecutable="true"> 4 <startEvent id="startevent1" name="Start"></startEvent> 5 <receiveTask id="申请旅游经费" name="申请旅游经费"></receiveTask> 6 <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="申请旅游经费"></sequenceFlow> 7 <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway" default="缺省值"></exclusiveGateway> 8 <sequenceFlow id="flow2" sourceRef="申请旅游经费" targetRef="exclusivegateway1"></sequenceFlow> 9 <receiveTask id="国外游" name="国外游"></receiveTask> 10 <receiveTask id="国内游" name="国内游"></receiveTask> 11 <receiveTask id="省内游" name="省内游"></receiveTask> 12 <sequenceFlow id="经费大于等于10000" name="经费大于等于10000" sourceRef="exclusivegateway1" targetRef="国外游"> 13 <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money >= 10000}]]></conditionExpression> 14 </sequenceFlow> 15 <sequenceFlow id="经费大于1000小于10000" name="经费大于1000小于10000" sourceRef="exclusivegateway1" targetRef="国内游" skipExpression="经费大于1000小于10000"> 16 <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money > 1000 && money < 10000}]]></conditionExpression> 17 </sequenceFlow> 18 <sequenceFlow id="缺省值" name="缺省值" sourceRef="exclusivegateway1" targetRef="省内游"></sequenceFlow> 19 <endEvent id="endevent1" name="End"></endEvent> 20 <sequenceFlow id="flow6" sourceRef="国外游" targetRef="endevent1"></sequenceFlow> 21 <sequenceFlow id="flow7" sourceRef="国内游" targetRef="endevent1"></sequenceFlow> 22 <sequenceFlow id="flow8" sourceRef="省内游" targetRef="endevent1"></sequenceFlow> 23 </process> 24 <bpmndi:BPMNDiagram id="BPMNDiagram_确定旅游地点"> 25 <bpmndi:BPMNPlane bpmnElement="确定旅游地点" id="BPMNPlane_确定旅游地点"> 26 <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"> 27 <omgdc:Bounds height="35.0" width="35.0" x="350.0" y="50.0"></omgdc:Bounds> 28 </bpmndi:BPMNShape> 29 <bpmndi:BPMNShape bpmnElement="申请旅游经费" id="BPMNShape_申请旅游经费"> 30 <omgdc:Bounds height="55.0" width="105.0" x="315.0" y="150.0"></omgdc:Bounds> 31 </bpmndi:BPMNShape> 32 <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1"> 33 <omgdc:Bounds height="40.0" width="40.0" x="347.0" y="260.0"></omgdc:Bounds> 34 </bpmndi:BPMNShape> 35 <bpmndi:BPMNShape bpmnElement="国外游" id="BPMNShape_国外游"> 36 <omgdc:Bounds height="55.0" width="105.0" x="120.0" y="360.0"></omgdc:Bounds> 37 </bpmndi:BPMNShape> 38 <bpmndi:BPMNShape bpmnElement="国内游" id="BPMNShape_国内游"> 39 <omgdc:Bounds height="55.0" width="105.0" x="315.0" y="360.0"></omgdc:Bounds> 40 </bpmndi:BPMNShape> 41 <bpmndi:BPMNShape bpmnElement="省内游" id="BPMNShape_省内游"> 42 <omgdc:Bounds height="55.0" width="105.0" x="530.0" y="360.0"></omgdc:Bounds> 43 </bpmndi:BPMNShape> 44 <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"> 45 <omgdc:Bounds height="35.0" width="35.0" x="350.0" y="490.0"></omgdc:Bounds> 46 </bpmndi:BPMNShape> 47 <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"> 48 <omgdi:waypoint x="367.0" y="85.0"></omgdi:waypoint> 49 <omgdi:waypoint x="367.0" y="150.0"></omgdi:waypoint> 50 </bpmndi:BPMNEdge> 51 <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2"> 52 <omgdi:waypoint x="367.0" y="205.0"></omgdi:waypoint> 53 <omgdi:waypoint x="367.0" y="260.0"></omgdi:waypoint> 54 </bpmndi:BPMNEdge> 55 <bpmndi:BPMNEdge bpmnElement="经费大于等于10000" id="BPMNEdge_经费大于等于10000"> 56 <omgdi:waypoint x="347.0" y="280.0"></omgdi:waypoint> 57 <omgdi:waypoint x="173.0" y="280.0"></omgdi:waypoint> 58 <omgdi:waypoint x="172.0" y="360.0"></omgdi:waypoint> 59 <bpmndi:BPMNLabel> 60 <omgdc:Bounds height="42.0" width="100.0" x="191.0" y="260.0"></omgdc:Bounds> 61 </bpmndi:BPMNLabel> 62 </bpmndi:BPMNEdge> 63 <bpmndi:BPMNEdge bpmnElement="经费大于1000小于10000" id="BPMNEdge_经费大于1000小于10000"> 64 <omgdi:waypoint x="367.0" y="300.0"></omgdi:waypoint> 65 <omgdi:waypoint x="367.0" y="360.0"></omgdi:waypoint> 66 <bpmndi:BPMNLabel> 67 <omgdc:Bounds height="42.0" width="100.0" x="380.0" y="309.0"></omgdc:Bounds> 68 </bpmndi:BPMNLabel> 69 </bpmndi:BPMNEdge> 70 <bpmndi:BPMNEdge bpmnElement="缺省值" id="BPMNEdge_缺省值"> 71 <omgdi:waypoint x="387.0" y="280.0"></omgdi:waypoint> 72 <omgdi:waypoint x="582.0" y="280.0"></omgdi:waypoint> 73 <omgdi:waypoint x="582.0" y="360.0"></omgdi:waypoint> 74 <bpmndi:BPMNLabel> 75 <omgdc:Bounds height="14.0" width="36.0" x="519.0" y="260.0"></omgdc:Bounds> 76 </bpmndi:BPMNLabel> 77 </bpmndi:BPMNEdge> 78 <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6"> 79 <omgdi:waypoint x="172.0" y="415.0"></omgdi:waypoint> 80 <omgdi:waypoint x="367.0" y="490.0"></omgdi:waypoint> 81 </bpmndi:BPMNEdge> 82 <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7"> 83 <omgdi:waypoint x="367.0" y="415.0"></omgdi:waypoint> 84 <omgdi:waypoint x="367.0" y="490.0"></omgdi:waypoint> 85 </bpmndi:BPMNEdge> 86 <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8"> 87 <omgdi:waypoint x="582.0" y="415.0"></omgdi:waypoint> 88 <omgdi:waypoint x="367.0" y="490.0"></omgdi:waypoint> 89 </bpmndi:BPMNEdge> 90 </bpmndi:BPMNPlane> 91 </bpmndi:BPMNDiagram> 92 </definitions>