123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <?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="myProcess" name="特种设备审核" isExecutable="true">
- <startEvent id="startevent1" name="开始" activiti:initiator="${applyUserId}"></startEvent>
- <userTask id="wxjlTask" name="装置维修经理" activiti:assignee="#{wxjlusers}">
- <extensionElements>
- <activiti:taskListener event="create" delegateExpression="${wxjlTaskCreateListener}"></activiti:taskListener>
- </extensionElements>
- </userTask>
- <userTask id="gyzjTask" name="工艺总监" activiti:assignee="#{gyzjusers}">
- <extensionElements>
- <activiti:taskListener event="create" delegateExpression="${gyzjTaskCreateListener}"></activiti:taskListener>
- </extensionElements>
- </userTask>
- <sequenceFlow id="flow1" name="开始" sourceRef="startevent1" targetRef="wxjlTask"></sequenceFlow>
- <sequenceFlow id="flow7" name="不通过" sourceRef="wxjlTask" targetRef="endevent2">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="flow9" name="不通过" sourceRef="gyzjTask" targetRef="endevent2">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
- </sequenceFlow>
- <endEvent id="endevent2" name="审核不通过">
- <extensionElements>
- <activiti:executionListener event="start" delegateExpression="${specEndFaileListener}"></activiti:executionListener>
- </extensionElements>
- </endEvent>
- <endEvent id="endevent3" name="审核通过">
- <extensionElements>
- <activiti:executionListener event="start" delegateExpression="${specEndSucessListener}"></activiti:executionListener>
- </extensionElements>
- </endEvent>
- <userTask id="ctmTask" name="机械维修总监" activiti:assignee="#{ctmusers}">
- <extensionElements>
- <activiti:taskListener event="create" delegateExpression="${ctmTaskCreateListener}"></activiti:taskListener>
- </extensionElements>
- </userTask>
- <sequenceFlow id="flow4" name="通过" sourceRef="gyzjTask" targetRef="ctmTask">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="flow10" name="不通过" sourceRef="ctmTask" targetRef="endevent2">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
- </sequenceFlow>
- <userTask id="gyjlTask" name="装置工艺经理" activiti:assignee="#{gyjlusers}">
- <extensionElements>
- <activiti:taskListener event="create" delegateExpression="${gyjlTaskCreateListener}"></activiti:taskListener>
- </extensionElements>
- </userTask>
- <sequenceFlow id="flow3" name="通过" sourceRef="gyjlTask" targetRef="gyzjTask"></sequenceFlow>
- <sequenceFlow id="flow8" name="不通过" sourceRef="gyjlTask" targetRef="endevent2">
- <documentation>${condition == 0}</documentation>
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
- </sequenceFlow>
- <userTask id="zfhzTask" name="政府回执" activiti:assignee="#{zfusers}">
- <extensionElements>
- <activiti:taskListener event="create" delegateExpression="${zfhzTaskCreateListener}"></activiti:taskListener>
- </extensionElements>
- </userTask>
- <sequenceFlow id="flow5" name="通过" sourceRef="ctmTask" targetRef="exclusivegateway1">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="flow6" name="结束" sourceRef="zfhzTask" targetRef="endevent3"></sequenceFlow>
- <sequenceFlow id="flow11" name="通过" sourceRef="wxjlTask" targetRef="gyjlTask">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
- </sequenceFlow>
- <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
- <sequenceFlow id="flow13" name="管道无需回执" sourceRef="exclusivegateway1" targetRef="endevent3">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isYlgd== 1}]]></conditionExpression>
- </sequenceFlow>
- <sequenceFlow id="flow14" sourceRef="exclusivegateway1" targetRef="zfhzTask">
- <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isYlgd== 0}]]></conditionExpression>
- </sequenceFlow>
- </process>
- <bpmndi:BPMNDiagram id="BPMNDiagram_myProcess">
- <bpmndi:BPMNPlane bpmnElement="myProcess" id="BPMNPlane_myProcess">
- <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
- <omgdc:Bounds height="50.0" width="41.0" x="80.0" y="28.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="wxjlTask" id="BPMNShape_wxjlTask">
- <omgdc:Bounds height="55.0" width="105.0" x="180.0" y="25.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="gyzjTask" id="BPMNShape_gyzjTask">
- <omgdc:Bounds height="55.0" width="105.0" x="490.0" y="25.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
- <omgdc:Bounds height="35.0" width="35.0" x="377.0" y="150.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="endevent3" id="BPMNShape_endevent3">
- <omgdc:Bounds height="35.0" width="35.0" x="989.0" y="35.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="ctmTask" id="BPMNShape_ctmTask">
- <omgdc:Bounds height="55.0" width="105.0" x="640.0" y="25.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="gyjlTask" id="BPMNShape_gyjlTask">
- <omgdc:Bounds height="55.0" width="111.0" x="339.0" y="25.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="zfhzTask" id="BPMNShape_zfhzTask">
- <omgdc:Bounds height="55.0" width="105.0" x="840.0" y="25.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
- <omgdc:Bounds height="40.0" width="40.0" x="777.0" y="32.0"></omgdc:Bounds>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
- <omgdi:waypoint x="121.0" y="53.0"></omgdi:waypoint>
- <omgdi:waypoint x="180.0" y="52.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="32.0" x="129.0" y="63.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
- <omgdi:waypoint x="232.0" y="80.0"></omgdi:waypoint>
- <omgdi:waypoint x="232.0" y="167.0"></omgdi:waypoint>
- <omgdi:waypoint x="377.0" y="167.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="48.0" x="240.0" y="119.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
- <omgdi:waypoint x="542.0" y="80.0"></omgdi:waypoint>
- <omgdi:waypoint x="542.0" y="167.0"></omgdi:waypoint>
- <omgdi:waypoint x="412.0" y="167.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="48.0" x="547.0" y="119.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
- <omgdi:waypoint x="595.0" y="52.0"></omgdi:waypoint>
- <omgdi:waypoint x="640.0" y="52.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="32.0" x="599.0" y="62.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
- <omgdi:waypoint x="692.0" y="80.0"></omgdi:waypoint>
- <omgdi:waypoint x="692.0" y="167.0"></omgdi:waypoint>
- <omgdi:waypoint x="412.0" y="167.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="48.0" x="700.0" y="119.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
- <omgdi:waypoint x="450.0" y="52.0"></omgdi:waypoint>
- <omgdi:waypoint x="490.0" y="52.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="32.0" x="448.0" y="62.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
- <omgdi:waypoint x="394.0" y="80.0"></omgdi:waypoint>
- <omgdi:waypoint x="394.0" y="150.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="48.0" x="397.0" y="119.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
- <omgdi:waypoint x="745.0" y="52.0"></omgdi:waypoint>
- <omgdi:waypoint x="777.0" y="52.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="32.0" x="746.0" y="62.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
- <omgdi:waypoint x="945.0" y="52.0"></omgdi:waypoint>
- <omgdi:waypoint x="989.0" y="52.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="32.0" x="958.0" y="66.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
- <omgdi:waypoint x="285.0" y="52.0"></omgdi:waypoint>
- <omgdi:waypoint x="339.0" y="52.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="32.0" x="285.0" y="52.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13">
- <omgdi:waypoint x="797.0" y="72.0"></omgdi:waypoint>
- <omgdi:waypoint x="797.0" y="151.0"></omgdi:waypoint>
- <omgdi:waypoint x="1007.0" y="151.0"></omgdi:waypoint>
- <omgdi:waypoint x="1006.0" y="70.0"></omgdi:waypoint>
- <bpmndi:BPMNLabel>
- <omgdc:Bounds height="16.0" width="96.0" x="843.0" y="129.0"></omgdc:Bounds>
- </bpmndi:BPMNLabel>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
- <omgdi:waypoint x="817.0" y="52.0"></omgdi:waypoint>
- <omgdi:waypoint x="840.0" y="52.0"></omgdi:waypoint>
- </bpmndi:BPMNEdge>
- </bpmndi:BPMNPlane>
- </bpmndi:BPMNDiagram>
- </definitions>
|