<?xml version="1.0" encoding="UTF-8"?>

<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 
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:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" 
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">
  <collaboration id="Collaboration">
    
    <participant id="pool1" name="Pool" processRef="process_pool1"/>
  
  </collaboration>
  <process id="demo3" name="演示流程测试">
    <extensionElements>
      <activiti:executionListener class="com.arftess.platform.service.bpm.listener.StartEventListener" event="start"/>
      <activiti:executionListener class="com.arftess.platform.service.bpm.listener.EndEventListener" event="end"/>
    </extensionElements>
  
    
  
  
    
    <laneSet id="laneSet_process_pool1">
      
      <lane id="lane1">
        
        <flowNodeRef>startevent1</flowNodeRef>
        
        <flowNodeRef>usertask1</flowNodeRef>
      
      </lane>
      
      <lane id="lane2" name="New lane">
        
        <flowNodeRef>usertask2</flowNodeRef>
      
      </lane>
      
      <lane id="lane3" name="New lane">
        
        <flowNodeRef>endevent1</flowNodeRef>
        
        <flowNodeRef>servicetask1</flowNodeRef>
        
        <flowNodeRef>endevent2</flowNodeRef>
      
      </lane>
    
    </laneSet>
    
    <startEvent activiti:initiator="startUser" id="startevent1" name="Start"/>
    
    <userTask id="usertask1" name="User Task">
      <extensionElements>
        <activiti:taskListener event="create" class="com.arftess.bpmx.activiti.service.listener.TaskCreateListener"/>
        <activiti:taskListener event="complete" class="com.arftess.bpmx.activiti.service.listener.TaskCompleteListener"/>
      </extensionElements>
    </userTask>
    
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1"/>
    
    <userTask id="usertask2" name="User Task">
      <extensionElements>
        <activiti:taskListener event="create" class="com.arftess.bpmx.activiti.service.listener.TaskCreateListener"/>
        <activiti:taskListener event="complete" class="com.arftess.bpmx.activiti.service.listener.TaskCompleteListener"/>
      </extensionElements>
    </userTask>
    
    <sequenceFlow id="flow2" sourceRef="usertask1" targetRef="usertask2"/>
    
    <endEvent id="endevent1" name="End"/>
    
    <serviceTask class="com.arftess.bpmx.activiti.service.task.ServiceTask" id="servicetask1" name="Service Task">
      <extensionElements>
        <activiti:executionListener event="start" class="com.arftess.bpmx.activiti.service.listener.AutoTaskListener"/>
      </extensionElements>
    </serviceTask>
    
    <sequenceFlow id="flow3" sourceRef="usertask2" targetRef="servicetask1"/>
    
    <sequenceFlow id="flow4" sourceRef="servicetask1" targetRef="endevent1"/>
    
    <endEvent id="endevent2" name="End"/>
  
  
    <bpmndi:BPMNDiagram id="BPMNDiagram_Collaboration">
    
      <bpmndi:BPMNPlane bpmnElement="Collaboration" id="BPMNPlane_Collaboration">
      
        <bpmndi:BPMNShape bpmnElement="pool1" id="BPMNShape_pool1">
        
          <omgdc:Bounds height="450.0" width="841.0" x="120.0" y="180.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="lane1" id="BPMNShape_lane1">
        
          <omgdc:Bounds height="150.0" width="821.0" x="140.0" y="180.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="lane2" id="BPMNShape_lane2">
        
          <omgdc:Bounds height="150.0" width="821.0" x="140.0" y="330.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="lane3" id="BPMNShape_lane3">
        
          <omgdc:Bounds height="150.0" width="821.0" x="140.0" y="480.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        
          <omgdc:Bounds height="35.0" width="35.0" x="220.0" y="230.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
        
          <omgdc:Bounds height="55.0" width="105.0" x="390.0" y="220.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
        
          <omgdc:Bounds height="55.0" width="105.0" x="390.0" y="380.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        
          <omgdc:Bounds height="35.0" width="35.0" x="850.0" y="550.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
        
          <omgdc:Bounds height="55.0" width="105.0" x="570.0" y="540.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
        
          <omgdc:Bounds height="35.0" width="35.0" x="920.0" y="630.0"/>
      
        </bpmndi:BPMNShape>
      
        <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        
          <omgdi:waypoint x="255.0" y="247.0"/>
        
          <omgdi:waypoint x="390.0" y="247.0"/>
      
        </bpmndi:BPMNEdge>
      
        <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        
          <omgdi:waypoint x="442.0" y="275.0"/>
        
          <omgdi:waypoint x="442.0" y="380.0"/>
      
        </bpmndi:BPMNEdge>
      
        <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        
          <omgdi:waypoint x="442.0" y="435.0"/>
        
          <omgdi:waypoint x="439.0" y="568.0"/>
        
          <omgdi:waypoint x="570.0" y="567.0"/>
      
        </bpmndi:BPMNEdge>
      
        <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        
          <omgdi:waypoint x="675.0" y="567.0"/>
        
          <omgdi:waypoint x="837.0" y="567.0"/>
        
          <omgdi:waypoint x="850.0" y="567.0"/>
      
        </bpmndi:BPMNEdge>
    
      </bpmndi:BPMNPlane>
  
    </bpmndi:BPMNDiagram>
  </process></definitions>
