<?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="trainsys-workflowwfv1" isClosed="false" isExecutable="true" name="测试流程(WorkFlow) v1" processType="None">
        <extensionElements>
            <flowable:eventListener delegateExpression="${processInstanceListener}"  />
            <flowable:field name="refgroups">
                <flowable:string>WfTest|流程测试|SYSUSERROLE</flowable:string>
            </flowable:field>
            <flowable:field name="bookings">
                <flowable:string>workflow</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_workflow">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="bookingmobs_workflow">
                <flowable:string>Mob</flowable:string>
            </flowable:field>
            <flowable:field name="wfstepfield_workflow">
                <flowable:string>wfstep</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_workflow">
                <flowable:string>wfstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_workflow">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="wffinishval_workflow">
                <flowable:string>30</flowable:string>
            </flowable:field>
            <flowable:field name="wfcancelval_workflow">
                <flowable:string>10</flowable:string>
            </flowable:field>
            <flowable:field name="wferrorval_workflow">
                <flowable:string>40</flowable:string>
            </flowable:field>
            <flowable:field name="majortext_workflow">
                <flowable:string>workflowname</flowable:string>
            </flowable:field>
            <flowable:field name="isvalid">
                <flowable:string>1</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-f2f162e01f7fe7d08374a565e1edb2af" name="开始事件">
          <extensionElements>
            <flowable:form process-form="startForm" process-mobform="startForm"  wfversion="1"/>
          </extensionElements>
     </startEvent>
     <endEvent id="sid-53de4cc0be78ed2c689be324acd60ae7" name="结束事件">
     </endEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${wfCoreService.getGroupUsers('WfTest',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-20-0ec5b557aa979a307af5aa9680485404" name="审核">
         <documentation>${majortext}</documentation>
         <extensionElements>
         <flowable:form procfunc="reassign" process-form="ApprovalForm" process-mobform="ApprovalForm" process-util3form="WorkFlowEditView_Form" process-util3formname="工作流编辑_表单" process-mobutil3form="WorkFlowEditView_Form" process-mobutil3formname="工作流编辑_表单"  />
         </extensionElements>
    </userTask>
      <sequenceFlow id="rid-35b4ab83a15f9a4de653622656f63992" sourceRef="sid-f2f162e01f7fe7d08374a565e1edb2af" targetRef="tid-20-0ec5b557aa979a307af5aa9680485404" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-IAACTION-201b2cf75734ee2c713479c19d03aa75" sourceRef="tid-20-0ec5b557aa979a307af5aa9680485404" targetRef="sid-53de4cc0be78ed2c689be324acd60ae7" name="审批">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-IAACTION-201b2cf75734ee2c713479c19d03aa75"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="WorkFlowEditView_Form" sequenceFlowMobForm="WorkFlowEditView_Form" sequenceFlowView="WFDynaActionView" sequenceFlowMobView="MobWFDynaActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_trainsys-workflowwfv1">
        <bpmndi:BPMNPlane id="BPMNPlane_trainsys-workflowwfv1" bpmnElement="trainsys-workflowwfv1">
                 <bpmndi:BPMNShape id="BPMNShape-f2f162e01f7fe7d08374a565e1edb2af" bpmnElement="sid-f2f162e01f7fe7d08374a565e1edb2af">
                     <omgdi:Bounds x="740" y="70" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-53de4cc0be78ed2c689be324acd60ae7" bpmnElement="sid-53de4cc0be78ed2c689be324acd60ae7">
                     <omgdi:Bounds x="740" y="410" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-0ec5b557aa979a307af5aa9680485404" bpmnElement="tid-20-0ec5b557aa979a307af5aa9680485404">
                     <omgdi:Bounds x="710" y="220" width="100" height="80" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-35b4ab83a15f9a4de653622656f63992" bpmnElement="rid-35b4ab83a15f9a4de653622656f63992">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-IAACTION-201b2cf75734ee2c713479c19d03aa75" bpmnElement="lid-IAACTION-201b2cf75734ee2c713479c19d03aa75">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>