<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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:flowable="http://flowable.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.flowable.org/processdef">
    <process id="demosys-mnv1" isClosed="false" isExecutable="true" name="发文流程 v1" processType="None">
        <extensionElements>
            <flowable:eventListener delegateExpression="${processInstanceListener}"  />
            <flowable:field name="bookings">
                <flowable:string>ibizsample0006</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_ibizsample0006">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="wfstepfield_ibizsample0006">
                <flowable:string>wfstep</flowable:string>
            </flowable:field>
            <flowable:field name="wfinstfield_ibizsample0006">
                <flowable:string>wfinstanceid</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_ibizsample0006">
                <flowable:string>ywstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_ibizsample0006">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="wffinishval_ibizsample0006">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wferrorval_ibizsample0006">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wfstatefield_ibizsample0006">
                <flowable:string>wfstate</flowable:string>
            </flowable:field>
            <flowable:field name="wfverfield_ibizsample0006">
                <flowable:string>wfversion</flowable:string>
            </flowable:field>
            <flowable:field name="majortext_ibizsample0006">
                <flowable:string>ibizsample0006name</flowable:string>
            </flowable:field>
            <flowable:field name="isvalid">
                <flowable:string>1</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-6249a50fdb096a401668a86ee2c158ac" name="开始流程">
     </startEvent>
     <serviceTask id="sid-df7f0fe719fdedf8a4b669d7df16d703" name="审核未通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         </extensionElements>
     </serviceTask>
     <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-10-adc8fca0f3c13356e9ae430b7dce05a2" name="部门领导审核" >
         <documentation>${majortext}</documentation>
     </userTask>
     <serviceTask id="sid-2ba22a096a6555b2de93ed04b18dfdfd" name="审核通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         </extensionElements>
     </serviceTask>
     <endEvent id="sid-dca9c7f4c245233b462231f744072f19" name="结束">
     </endEvent>
     <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-20-6b4a02f112b6d0fc38b45f004b7c2bbb" name="部门会签" flowable:formKey="EMBED">
         <documentation>${majortext}</documentation>
     </userTask>
      <sequenceFlow id="rid-ce0760eeb5ff8a8aa18f25d5ff880405" sourceRef="sid-6249a50fdb096a401668a86ee2c158ac" targetRef="tid-10-adc8fca0f3c13356e9ae430b7dce05a2" name="">
     </sequenceFlow>
      <sequenceFlow id="rid-b7f8f3a491f4a2af95a49a14f01a9083" sourceRef="sid-df7f0fe719fdedf8a4b669d7df16d703" targetRef="sid-dca9c7f4c245233b462231f744072f19" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C100-3cea1783955108137eae785d89e86b36" sourceRef="tid-10-adc8fca0f3c13356e9ae430b7dce05a2" targetRef="sid-6b4a02f112b6d0fc38b45f004b7c2bbb" name="审核通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C100-3cea1783955108137eae785d89e86b36"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C200-c1ac0b901c596e3bffcd3f1bce6f7dc0" sourceRef="tid-10-adc8fca0f3c13356e9ae430b7dce05a2" targetRef="sid-df7f0fe719fdedf8a4b669d7df16d703" name="审核不通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C200-c1ac0b901c596e3bffcd3f1bce6f7dc0"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="rid-b687710d3c71896e4a3214708171c11e" sourceRef="sid-2ba22a096a6555b2de93ed04b18dfdfd" targetRef="sid-dca9c7f4c245233b462231f744072f19" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-30-8870eb9eed14e5e35b55580e96319657" sourceRef="sid-6b4a02f112b6d0fc38b45f004b7c2bbb" targetRef="sid-2ba22a096a6555b2de93ed04b18dfdfd" name="">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-30-8870eb9eed14e5e35b55580e96319657"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ALL"  />
         </extensionElements>
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-mnv1">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-mnv1" bpmnElement="demosys-mnv1">
                 <bpmndi:BPMNShape id="BPMNShape-6249a50fdb096a401668a86ee2c158ac" bpmnElement="sid-6249a50fdb096a401668a86ee2c158ac">
                     <omgdi:Bounds x="280" y="30" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-df7f0fe719fdedf8a4b669d7df16d703" bpmnElement="sid-df7f0fe719fdedf8a4b669d7df16d703">
                     <omgdi:Bounds x="860" y="480" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-adc8fca0f3c13356e9ae430b7dce05a2" bpmnElement="tid-10-adc8fca0f3c13356e9ae430b7dce05a2">
                     <omgdi:Bounds x="600" y="100" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-2ba22a096a6555b2de93ed04b18dfdfd" bpmnElement="sid-2ba22a096a6555b2de93ed04b18dfdfd">
                     <omgdi:Bounds x="120" y="480" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-dca9c7f4c245233b462231f744072f19" bpmnElement="sid-dca9c7f4c245233b462231f744072f19">
                     <omgdi:Bounds x="580" y="580" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-6b4a02f112b6d0fc38b45f004b7c2bbb" bpmnElement="sid-6b4a02f112b6d0fc38b45f004b7c2bbb">
                     <omgdi:Bounds x="120" y="280" width="100" height="80" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-ce0760eeb5ff8a8aa18f25d5ff880405" bpmnElement="rid-ce0760eeb5ff8a8aa18f25d5ff880405">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-b7f8f3a491f4a2af95a49a14f01a9083" bpmnElement="rid-b7f8f3a491f4a2af95a49a14f01a9083">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C100-3cea1783955108137eae785d89e86b36" bpmnElement="lid-C100-3cea1783955108137eae785d89e86b36">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C200-c1ac0b901c596e3bffcd3f1bce6f7dc0" bpmnElement="lid-C200-c1ac0b901c596e3bffcd3f1bce6f7dc0">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-b687710d3c71896e4a3214708171c11e" bpmnElement="rid-b687710d3c71896e4a3214708171c11e">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-30-8870eb9eed14e5e35b55580e96319657" bpmnElement="lid-30-8870eb9eed14e5e35b55580e96319657">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>