<?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-odspmvv2" isClosed="false" isExecutable="true" name="订单审批（多版本） v2" processType="None">
        <extensionElements>
            <flowable:eventListener delegateExpression="${processInstanceListener}"  />
            <flowable:field name="bookings">
                <flowable:string>ibizsample0004</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_ibizsample0004">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="wfstepfield_ibizsample0004">
                <flowable:string>wfmvstep</flowable:string>
            </flowable:field>
            <flowable:field name="wfinstfield_ibizsample0004">
                <flowable:string>wfinstanceid</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_ibizsample0004">
                <flowable:string>wfmvstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_ibizsample0004">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="wffinishval_ibizsample0004">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wferrorval_ibizsample0004">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wfstatefield_ibizsample0004">
                <flowable:string>wfstate</flowable:string>
            </flowable:field>
            <flowable:field name="wfverfield_ibizsample0004">
                <flowable:string>wfversion</flowable:string>
            </flowable:field>
            <flowable:field name="majortext_ibizsample0004">
                <flowable:string>ibizsample0004name</flowable:string>
            </flowable:field>
            <flowable:field name="isvalid">
                <flowable:string>1</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-aff16e6297aac5cb0666e83cacd58a19" name="开始流程">
     </startEvent>
     <serviceTask id="sid-9fb4fe62e6c0a011d090efc9d2f08184" name="审核通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizsample0004</flowable:string></flowable:field>
         <flowable:field name="service-deaction"><flowable:string>update</flowable:string></flowable:field>
        <flowable:field name="params-wfmvstate"><flowable:string>30</flowable:string></flowable:field>
         </extensionElements>
     </serviceTask>
     <serviceTask id="sid-95f15ef4a720b9fd06ed60acd64621d4" name="审核未通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizsample0004</flowable:string></flowable:field>
         <flowable:field name="service-deaction"><flowable:string>update</flowable:string></flowable:field>
        <flowable:field name="params-wfmvstate"><flowable:string>40</flowable:string></flowable:field>
         </extensionElements>
     </serviceTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-10-93958c235c57c659ee1166d06b5bebb1" name="财务经理审核">
         <documentation>${majortext}</documentation>
    </userTask>
     <endEvent id="sid-f0a14a06c82baa38c67c8341ff416c9f" name="结束">
     </endEvent>
      <sequenceFlow id="rid-be379d57475d787b7aeedf073a370f5b" sourceRef="sid-aff16e6297aac5cb0666e83cacd58a19" targetRef="tid-10-93958c235c57c659ee1166d06b5bebb1" name="">
     </sequenceFlow>
      <sequenceFlow id="rid-af11458046361889807a2ba1fdc53a76" sourceRef="sid-9fb4fe62e6c0a011d090efc9d2f08184" targetRef="sid-f0a14a06c82baa38c67c8341ff416c9f" name="">
     </sequenceFlow>
      <sequenceFlow id="rid-ab754eb2b377b346c352966ae28612fc" sourceRef="sid-95f15ef4a720b9fd06ed60acd64621d4" targetRef="sid-f0a14a06c82baa38c67c8341ff416c9f" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C100-0aec904808d2222972f2ed184fb77603" sourceRef="tid-10-93958c235c57c659ee1166d06b5bebb1" targetRef="sid-9fb4fe62e6c0a011d090efc9d2f08184" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C100-0aec904808d2222972f2ed184fb77603"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C200-2b8ab2dbd9f46f7c13872b9157cea3bc" sourceRef="tid-10-93958c235c57c659ee1166d06b5bebb1" targetRef="sid-95f15ef4a720b9fd06ed60acd64621d4" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C200-2b8ab2dbd9f46f7c13872b9157cea3bc"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-odspmvv2">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-odspmvv2" bpmnElement="demosys-odspmvv2">
                 <bpmndi:BPMNShape id="BPMNShape-aff16e6297aac5cb0666e83cacd58a19" bpmnElement="sid-aff16e6297aac5cb0666e83cacd58a19">
                     <omgdi:Bounds x="395" y="60" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-9fb4fe62e6c0a011d090efc9d2f08184" bpmnElement="sid-9fb4fe62e6c0a011d090efc9d2f08184">
                     <omgdi:Bounds x="200" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-95f15ef4a720b9fd06ed60acd64621d4" bpmnElement="sid-95f15ef4a720b9fd06ed60acd64621d4">
                     <omgdi:Bounds x="800" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-93958c235c57c659ee1166d06b5bebb1" bpmnElement="tid-10-93958c235c57c659ee1166d06b5bebb1">
                     <omgdi:Bounds x="500" y="200" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-f0a14a06c82baa38c67c8341ff416c9f" bpmnElement="sid-f0a14a06c82baa38c67c8341ff416c9f">
                     <omgdi:Bounds x="580" y="500" width="30" height="30" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-be379d57475d787b7aeedf073a370f5b" bpmnElement="rid-be379d57475d787b7aeedf073a370f5b">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-af11458046361889807a2ba1fdc53a76" bpmnElement="rid-af11458046361889807a2ba1fdc53a76">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-ab754eb2b377b346c352966ae28612fc" bpmnElement="rid-ab754eb2b377b346c352966ae28612fc">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C100-0aec904808d2222972f2ed184fb77603" bpmnElement="lid-C100-0aec904808d2222972f2ed184fb77603">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C200-2b8ab2dbd9f46f7c13872b9157cea3bc" bpmnElement="lid-C200-2b8ab2dbd9f46f7c13872b9157cea3bc">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>