<?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>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-用户任务-bc2ba09f6a5735bd9d83a9b102873cbc" name="用户任务">
         <documentation>${majortext}</documentation>
    </userTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-用户任务-90b05343d16e11b07c6828e5963925ea" name="用户任务">
         <documentation>${majortext}</documentation>
    </userTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid--ab22480a12bdcbd7d86193b3d8ac3d05" name="中间定时器捕获事件">
         <documentation>${majortext}</documentation>
    </userTask>
    <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>
     <endEvent id="sid-53de4cc0be78ed2c689be324acd60ae7" name="结束事件">
     </endEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-用户任务-111cb74e98b02ab1e9500a737674a5d6" name="用户任务">
         <documentation>${majortext}</documentation>
    </userTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-用户任务-c5410c36c8b14bb6e18a7faef92c2be7" name="用户任务">
         <documentation>${majortext}</documentation>
    </userTask>
    <subProcess flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="sid-d4312aaf86c0637aa219f15625a1a4c9" name="子流程"  flowable:formKey="EMBED">
         <documentation>${majortext}</documentation>
    </subProcess>
      <sequenceFlow id="rid-96abe06a3ca2e1f374e14c4efcd078b6" sourceRef="sid-f2f162e01f7fe7d08374a565e1edb2af" targetRef="tid-20-0ec5b557aa979a307af5aa9680485404" name="">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${(()&&((wfCoreService.test(activedata.dddd, 'ISNULL', null))))} ]]></conditionExpression>
     </sequenceFlow>
      <sequenceFlow id="lid-IAACTION1-cd1865baa426b3611a36a6bce92e2491" sourceRef="tid-用户任务-bc2ba09f6a5735bd9d83a9b102873cbc" targetRef="tid-用户任务-c5410c36c8b14bb6e18a7faef92c2be7" name="交互连接">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-IAACTION1-cd1865baa426b3611a36a6bce92e2491"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-IAACTION3-595de3ec148bac11339f03d359c97570" sourceRef="tid-用户任务-bc2ba09f6a5735bd9d83a9b102873cbc" targetRef="tid-用户任务-111cb74e98b02ab1e9500a737674a5d6" name="交互连接">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-IAACTION3-595de3ec148bac11339f03d359c97570"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-IAACTION-8ab90885179c56021bf4cb9d5d839ba9" sourceRef="tid-20-0ec5b557aa979a307af5aa9680485404" targetRef="sid-53de4cc0be78ed2c689be324acd60ae7" name="审批">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-IAACTION-8ab90885179c56021bf4cb9d5d839ba9"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="WorkFlowEditView_Form" sequenceFlowMobForm="WorkFlowEditView_Form" sequenceFlowView="WFDynaActionView" sequenceFlowMobView="MobWFDynaActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-IAACTION4-8a9affbd96e353f4e281f5490befafa1" sourceRef="tid-用户任务-111cb74e98b02ab1e9500a737674a5d6" targetRef="sid-f2f162e01f7fe7d08374a565e1edb2af" name="交互连接">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-IAACTION4-8a9affbd96e353f4e281f5490befafa1"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-IAACTION2-e549c88d892416cf030d2dfa327c466a" sourceRef="tid-用户任务-c5410c36c8b14bb6e18a7faef92c2be7" targetRef="tid-用户任务-90b05343d16e11b07c6828e5963925ea" name="交互连接">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-IAACTION2-e549c88d892416cf030d2dfa327c466a"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-WFRETURN-c57de7810c01a58c6234f71df84db9b3" sourceRef="sid-d4312aaf86c0637aa219f15625a1a4c9" targetRef="sid-53de4cc0be78ed2c689be324acd60ae7" name="嵌套流程返回">
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-WFRETURN1-bd9466e3ee36bd0bfc552c9874a437ea" sourceRef="sid-d4312aaf86c0637aa219f15625a1a4c9" targetRef="tid-用户任务-90b05343d16e11b07c6828e5963925ea" name="嵌套流程返回">
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-WFRETURN2-f5525b73a792cebaabcfe48757ffafa2" sourceRef="sid-d4312aaf86c0637aa219f15625a1a4c9" targetRef="tid-20-0ec5b557aa979a307af5aa9680485404" name="嵌套流程返回">
         <extensionElements>
             <flowable:form 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-bc2ba09f6a5735bd9d83a9b102873cbc" bpmnElement="tid-用户任务-bc2ba09f6a5735bd9d83a9b102873cbc">
                     <omgdi:Bounds x="260" y="210" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-90b05343d16e11b07c6828e5963925ea" bpmnElement="tid-用户任务-90b05343d16e11b07c6828e5963925ea">
                     <omgdi:Bounds x="260" y="610" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-ab22480a12bdcbd7d86193b3d8ac3d05" bpmnElement="sid-ab22480a12bdcbd7d86193b3d8ac3d05">
                     <omgdi:Bounds x="150" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-0ec5b557aa979a307af5aa9680485404" bpmnElement="tid-20-0ec5b557aa979a307af5aa9680485404">
                     <omgdi:Bounds x="910" y="210" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-53de4cc0be78ed2c689be324acd60ae7" bpmnElement="sid-53de4cc0be78ed2c689be324acd60ae7">
                     <omgdi:Bounds x="740" y="420" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-111cb74e98b02ab1e9500a737674a5d6" bpmnElement="tid-用户任务-111cb74e98b02ab1e9500a737674a5d6">
                     <omgdi:Bounds x="280" y="20" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-c5410c36c8b14bb6e18a7faef92c2be7" bpmnElement="tid-用户任务-c5410c36c8b14bb6e18a7faef92c2be7">
                     <omgdi:Bounds x="300" y="410" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-d4312aaf86c0637aa219f15625a1a4c9" bpmnElement="sid-d4312aaf86c0637aa219f15625a1a4c9">
                     <omgdi:Bounds x="580" y="580" width="100" height="80" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-96abe06a3ca2e1f374e14c4efcd078b6" bpmnElement="rid-96abe06a3ca2e1f374e14c4efcd078b6">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-IAACTION1-cd1865baa426b3611a36a6bce92e2491" bpmnElement="lid-IAACTION1-cd1865baa426b3611a36a6bce92e2491">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-IAACTION3-595de3ec148bac11339f03d359c97570" bpmnElement="lid-IAACTION3-595de3ec148bac11339f03d359c97570">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-IAACTION-8ab90885179c56021bf4cb9d5d839ba9" bpmnElement="lid-IAACTION-8ab90885179c56021bf4cb9d5d839ba9">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-IAACTION4-8a9affbd96e353f4e281f5490befafa1" bpmnElement="lid-IAACTION4-8a9affbd96e353f4e281f5490befafa1">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-IAACTION2-e549c88d892416cf030d2dfa327c466a" bpmnElement="lid-IAACTION2-e549c88d892416cf030d2dfa327c466a">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-WFRETURN-c57de7810c01a58c6234f71df84db9b3" bpmnElement="lid-WFRETURN-c57de7810c01a58c6234f71df84db9b3">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-WFRETURN1-bd9466e3ee36bd0bfc552c9874a437ea" bpmnElement="lid-WFRETURN1-bd9466e3ee36bd0bfc552c9874a437ea">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-WFRETURN2-f5525b73a792cebaabcfe48757ffafa2" bpmnElement="lid-WFRETURN2-f5525b73a792cebaabcfe48757ffafa2">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>