<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
                  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
                  xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
                  xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  id="Definitions_CargaFacturasSAP"
                  targetNamespace="http://inquality.com/bpmn/cargafacturas">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:participant id="Participant_IKData" name="IKData (OCR)" processRef="Process_IKData"/>
    <bpmn:participant id="Participant_Robot" name="Robot RPA (RocketBot)" processRef="Process_Robot"/>
    <bpmn:participant id="Participant_SAP" name="SAP Business One" processRef="Process_SAP"/>
    <bpmn:participant id="Participant_Excepcion" name="Bandeja manual / Operador humano" processRef="Process_Excepcion"/>
    <bpmn:messageFlow id="MF_1" sourceRef="Task_GenerarPayload" targetRef="StartEvent_Robot"/>
    <bpmn:messageFlow id="MF_2" sourceRef="Task_GuardarFactura" targetRef="Task_RecibirFactura"/>
    <bpmn:messageFlow id="MF_3" sourceRef="Task_DerivarBandeja" targetRef="Task_RevisionManual"/>
  </bpmn:collaboration>
  <bpmn:process id="Process_IKData" name="IKData (OCR)" isExecutable="false">
    <bpmn:startEvent id="StartEvent_IKData" name="Factura escaneada">
      <bpmn:outgoing>Flow_IK_1</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_OCR" name="Procesar OCR sobre factura">
      <bpmn:incoming>Flow_IK_1</bpmn:incoming>
      <bpmn:outgoing>Flow_IK_2</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="Task_GenerarPayload" name="Generar payload JSON estructurado">
      <bpmn:incoming>Flow_IK_2</bpmn:incoming>
      <bpmn:outgoing>Flow_IK_3</bpmn:outgoing>
    </bpmn:task>
    <bpmn:endEvent id="EndEvent_IKData" name="Payload disponible">
      <bpmn:incoming>Flow_IK_3</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_IK_1" sourceRef="StartEvent_IKData" targetRef="Task_OCR"/>
    <bpmn:sequenceFlow id="Flow_IK_2" sourceRef="Task_OCR" targetRef="Task_GenerarPayload"/>
    <bpmn:sequenceFlow id="Flow_IK_3" sourceRef="Task_GenerarPayload" targetRef="EndEvent_IKData"/>
  </bpmn:process>
  <bpmn:process id="Process_Robot" name="Robot RPA (RocketBot)" isExecutable="true">
    <bpmn:startEvent id="StartEvent_Robot" name="Recibe payload">
      <bpmn:outgoing>Flow_R_1</bpmn:outgoing>
      <bpmn:messageEventDefinition id="MED_1"/>
    </bpmn:startEvent>
    <bpmn:serviceTask id="Task_LeerPayload" name="Leer y validar payload (RPA-001 a RPA-003)">
      <bpmn:incoming>Flow_R_1</bpmn:incoming>
      <bpmn:outgoing>Flow_R_2</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:exclusiveGateway id="Gateway_PayloadValido" name="¿Payload válido?">
      <bpmn:incoming>Flow_R_2</bpmn:incoming>
      <bpmn:outgoing>Flow_R_3_Si</bpmn:outgoing>
      <bpmn:outgoing>Flow_R_3_No</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="Task_AbrirSAP" name="Abrir y navegar SAP B1 a Factura proveedores (RPA-004, RPA-005)">
      <bpmn:incoming>Flow_R_3_Si</bpmn:incoming>
      <bpmn:outgoing>Flow_R_4</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="Task_CargarCabecera" name="Cargar cabecera: proveedor, fechas, folio (RPA-006 a RPA-009)">
      <bpmn:incoming>Flow_R_4</bpmn:incoming>
      <bpmn:outgoing>Flow_R_5</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:exclusiveGateway id="Gateway_ProveedorExiste" name="¿Proveedor existe en SAP?">
      <bpmn:incoming>Flow_R_5</bpmn:incoming>
      <bpmn:outgoing>Flow_R_6_Si</bpmn:outgoing>
      <bpmn:outgoing>Flow_R_6_No</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="Task_CargarLinea" name="Cargar línea de servicio: cuenta, descripción, sucursal, depto, U.negocio, región, IVA, monto (RPA-010 a RPA-018)">
      <bpmn:incoming>Flow_R_6_Si</bpmn:incoming>
      <bpmn:outgoing>Flow_R_7</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:exclusiveGateway id="Gateway_CalculoOK" name="¿SAP recalculó totales OK?">
      <bpmn:incoming>Flow_R_7</bpmn:incoming>
      <bpmn:outgoing>Flow_R_8_Si</bpmn:outgoing>
      <bpmn:outgoing>Flow_R_8_No</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:exclusiveGateway id="Gateway_TimbradoExiste" name="¿Timbrado vigente cargado?">
      <bpmn:incoming>Flow_R_8_Si</bpmn:incoming>
      <bpmn:outgoing>Flow_R_9_Si</bpmn:outgoing>
      <bpmn:outgoing>Flow_R_9_No</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:subProcess id="SubProcess_Timbrado" name="Sub-proceso: Crear timbrado nuevo (RPA-021 a RPA-025)">
      <bpmn:incoming>Flow_R_9_No</bpmn:incoming>
      <bpmn:outgoing>Flow_R_10</bpmn:outgoing>
      <bpmn:startEvent id="SubStart_Timbrado">
        <bpmn:outgoing>SubFlow_T_1</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:serviceTask id="SubTask_NavegarTimbrado" name="Navegar a Creación de Timbrado y añadir línea">
        <bpmn:incoming>SubFlow_T_1</bpmn:incoming>
        <bpmn:outgoing>SubFlow_T_2</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:serviceTask id="SubTask_CompletarTimbrado" name="Completar campos del timbrado y guardar">
        <bpmn:incoming>SubFlow_T_2</bpmn:incoming>
        <bpmn:outgoing>SubFlow_T_3</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:endEvent id="SubEnd_Timbrado">
        <bpmn:incoming>SubFlow_T_3</bpmn:incoming>
      </bpmn:endEvent>
      <bpmn:sequenceFlow id="SubFlow_T_1" sourceRef="SubStart_Timbrado" targetRef="SubTask_NavegarTimbrado"/>
      <bpmn:sequenceFlow id="SubFlow_T_2" sourceRef="SubTask_NavegarTimbrado" targetRef="SubTask_CompletarTimbrado"/>
      <bpmn:sequenceFlow id="SubFlow_T_3" sourceRef="SubTask_CompletarTimbrado" targetRef="SubEnd_Timbrado"/>
    </bpmn:subProcess>
    <bpmn:serviceTask id="Task_CargarCtrlTimbrado" name="Ingresar control de timbrado y autocompletar (RPA-026, RPA-028)">
      <bpmn:incoming>Flow_R_9_Si</bpmn:incoming>
      <bpmn:incoming>Flow_R_10</bpmn:incoming>
      <bpmn:outgoing>Flow_R_11</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="Task_ValidacionFinal" name="Validar coincidencia IVA, número y monto (RPA-029)">
      <bpmn:incoming>Flow_R_11</bpmn:incoming>
      <bpmn:outgoing>Flow_R_12</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:exclusiveGateway id="Gateway_ValidacionFinal" name="¿Datos coinciden?">
      <bpmn:incoming>Flow_R_12</bpmn:incoming>
      <bpmn:outgoing>Flow_R_13_Si</bpmn:outgoing>
      <bpmn:outgoing>Flow_R_13_No</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="Task_GuardarFactura" name="Guardar factura: Agregar y nuevo (RPA-030, RPA-031)">
      <bpmn:incoming>Flow_R_13_Si</bpmn:incoming>
      <bpmn:outgoing>Flow_R_14</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:exclusiveGateway id="Gateway_GuardadoOK" name="¿Guardado confirmado?">
      <bpmn:incoming>Flow_R_14</bpmn:incoming>
      <bpmn:outgoing>Flow_R_15_Si</bpmn:outgoing>
      <bpmn:outgoing>Flow_R_15_No</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="Task_LogYNotificar" name="Registrar log + mover archivo + notificar (RPA-032 a RPA-034)">
      <bpmn:incoming>Flow_R_15_Si</bpmn:incoming>
      <bpmn:outgoing>Flow_R_16</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="EndEvent_OK" name="Factura cargada exitosamente">
      <bpmn:incoming>Flow_R_16</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:serviceTask id="Task_DerivarBandeja" name="Derivar a bandeja manual con motivo (RPA-035, RPA-036)">
      <bpmn:incoming>Flow_R_3_No</bpmn:incoming>
      <bpmn:incoming>Flow_R_6_No</bpmn:incoming>
      <bpmn:incoming>Flow_R_8_No</bpmn:incoming>
      <bpmn:incoming>Flow_R_13_No</bpmn:incoming>
      <bpmn:incoming>Flow_R_15_No</bpmn:incoming>
      <bpmn:outgoing>Flow_R_17</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="EndEvent_Excepcion" name="Derivado a operador humano">
      <bpmn:incoming>Flow_R_17</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_R_1" sourceRef="StartEvent_Robot" targetRef="Task_LeerPayload"/>
    <bpmn:sequenceFlow id="Flow_R_2" sourceRef="Task_LeerPayload" targetRef="Gateway_PayloadValido"/>
    <bpmn:sequenceFlow id="Flow_R_3_Si" name="Sí" sourceRef="Gateway_PayloadValido" targetRef="Task_AbrirSAP"/>
    <bpmn:sequenceFlow id="Flow_R_3_No" name="No" sourceRef="Gateway_PayloadValido" targetRef="Task_DerivarBandeja"/>
    <bpmn:sequenceFlow id="Flow_R_4" sourceRef="Task_AbrirSAP" targetRef="Task_CargarCabecera"/>
    <bpmn:sequenceFlow id="Flow_R_5" sourceRef="Task_CargarCabecera" targetRef="Gateway_ProveedorExiste"/>
    <bpmn:sequenceFlow id="Flow_R_6_Si" name="Sí" sourceRef="Gateway_ProveedorExiste" targetRef="Task_CargarLinea"/>
    <bpmn:sequenceFlow id="Flow_R_6_No" name="No" sourceRef="Gateway_ProveedorExiste" targetRef="Task_DerivarBandeja"/>
    <bpmn:sequenceFlow id="Flow_R_7" sourceRef="Task_CargarLinea" targetRef="Gateway_CalculoOK"/>
    <bpmn:sequenceFlow id="Flow_R_8_Si" name="Sí" sourceRef="Gateway_CalculoOK" targetRef="Gateway_TimbradoExiste"/>
    <bpmn:sequenceFlow id="Flow_R_8_No" name="No" sourceRef="Gateway_CalculoOK" targetRef="Task_DerivarBandeja"/>
    <bpmn:sequenceFlow id="Flow_R_9_Si" name="Sí" sourceRef="Gateway_TimbradoExiste" targetRef="Task_CargarCtrlTimbrado"/>
    <bpmn:sequenceFlow id="Flow_R_9_No" name="No" sourceRef="Gateway_TimbradoExiste" targetRef="SubProcess_Timbrado"/>
    <bpmn:sequenceFlow id="Flow_R_10" sourceRef="SubProcess_Timbrado" targetRef="Task_CargarCtrlTimbrado"/>
    <bpmn:sequenceFlow id="Flow_R_11" sourceRef="Task_CargarCtrlTimbrado" targetRef="Task_ValidacionFinal"/>
    <bpmn:sequenceFlow id="Flow_R_12" sourceRef="Task_ValidacionFinal" targetRef="Gateway_ValidacionFinal"/>
    <bpmn:sequenceFlow id="Flow_R_13_Si" name="Sí" sourceRef="Gateway_ValidacionFinal" targetRef="Task_GuardarFactura"/>
    <bpmn:sequenceFlow id="Flow_R_13_No" name="No" sourceRef="Gateway_ValidacionFinal" targetRef="Task_DerivarBandeja"/>
    <bpmn:sequenceFlow id="Flow_R_14" sourceRef="Task_GuardarFactura" targetRef="Gateway_GuardadoOK"/>
    <bpmn:sequenceFlow id="Flow_R_15_Si" name="Sí" sourceRef="Gateway_GuardadoOK" targetRef="Task_LogYNotificar"/>
    <bpmn:sequenceFlow id="Flow_R_15_No" name="No" sourceRef="Gateway_GuardadoOK" targetRef="Task_DerivarBandeja"/>
    <bpmn:sequenceFlow id="Flow_R_16" sourceRef="Task_LogYNotificar" targetRef="EndEvent_OK"/>
    <bpmn:sequenceFlow id="Flow_R_17" sourceRef="Task_DerivarBandeja" targetRef="EndEvent_Excepcion"/>
  </bpmn:process>
  <bpmn:process id="Process_SAP" name="SAP Business One" isExecutable="false">
    <bpmn:task id="Task_RecibirFactura" name="Persistir factura en módulo de Compras"/>
  </bpmn:process>
  <bpmn:process id="Process_Excepcion" name="Bandeja manual" isExecutable="false">
    <bpmn:userTask id="Task_RevisionManual" name="Operador humano revisa y completa caso"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
      <bpmndi:BPMNShape id="Participant_IKData_di" bpmnElement="Participant_IKData" isHorizontal="true">
        <dc:Bounds x="100" y="40" width="900" height="120"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_IKData_di" bpmnElement="StartEvent_IKData">
        <dc:Bounds x="160" y="82" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="145" y="125" width="70" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_OCR_di" bpmnElement="Task_OCR">
        <dc:Bounds x="260" y="60" width="120" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_GenerarPayload_di" bpmnElement="Task_GenerarPayload">
        <dc:Bounds x="440" y="60" width="140" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_IKData_di" bpmnElement="EndEvent_IKData">
        <dc:Bounds x="640" y="82" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="620" y="125" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_IK_1_di" bpmnElement="Flow_IK_1">
        <di:waypoint x="196" y="100"/><di:waypoint x="260" y="100"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_IK_2_di" bpmnElement="Flow_IK_2">
        <di:waypoint x="380" y="100"/><di:waypoint x="440" y="100"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_IK_3_di" bpmnElement="Flow_IK_3">
        <di:waypoint x="580" y="100"/><di:waypoint x="640" y="100"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Participant_Robot_di" bpmnElement="Participant_Robot" isHorizontal="true">
        <dc:Bounds x="100" y="180" width="2400" height="320"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_Robot_di" bpmnElement="StartEvent_Robot">
        <dc:Bounds x="160" y="322" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="145" y="365" width="70" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_LeerPayload_di" bpmnElement="Task_LeerPayload">
        <dc:Bounds x="260" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_PayloadValido_di" bpmnElement="Gateway_PayloadValido" isMarkerVisible="true">
        <dc:Bounds x="475" y="315" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="465" y="280" width="70" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_AbrirSAP_di" bpmnElement="Task_AbrirSAP">
        <dc:Bounds x="580" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_CargarCabecera_di" bpmnElement="Task_CargarCabecera">
        <dc:Bounds x="780" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_ProveedorExiste_di" bpmnElement="Gateway_ProveedorExiste" isMarkerVisible="true">
        <dc:Bounds x="990" y="315" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="975" y="280" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_CargarLinea_di" bpmnElement="Task_CargarLinea">
        <dc:Bounds x="1090" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_CalculoOK_di" bpmnElement="Gateway_CalculoOK" isMarkerVisible="true">
        <dc:Bounds x="1295" y="315" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1280" y="280" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_TimbradoExiste_di" bpmnElement="Gateway_TimbradoExiste" isMarkerVisible="true">
        <dc:Bounds x="1395" y="315" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1380" y="280" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="SubProcess_Timbrado_di" bpmnElement="SubProcess_Timbrado" isExpanded="false">
        <dc:Bounds x="1390" y="200" width="180" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_CargarCtrlTimbrado_di" bpmnElement="Task_CargarCtrlTimbrado">
        <dc:Bounds x="1500" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_ValidacionFinal_di" bpmnElement="Task_ValidacionFinal">
        <dc:Bounds x="1700" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_ValidacionFinal_di" bpmnElement="Gateway_ValidacionFinal" isMarkerVisible="true">
        <dc:Bounds x="1915" y="315" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1900" y="280" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_GuardarFactura_di" bpmnElement="Task_GuardarFactura">
        <dc:Bounds x="2020" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_GuardadoOK_di" bpmnElement="Gateway_GuardadoOK" isMarkerVisible="true">
        <dc:Bounds x="2225" y="315" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2210" y="280" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_LogYNotificar_di" bpmnElement="Task_LogYNotificar">
        <dc:Bounds x="2310" y="300" width="160" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_OK_di" bpmnElement="EndEvent_OK">
        <dc:Bounds x="2440" y="220" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2410" y="200" width="100" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_DerivarBandeja_di" bpmnElement="Task_DerivarBandeja">
        <dc:Bounds x="1090" y="430" width="160" height="60"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_Excepcion_di" bpmnElement="EndEvent_Excepcion">
        <dc:Bounds x="1310" y="442" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1280" y="485" width="100" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_R_1_di" bpmnElement="Flow_R_1">
        <di:waypoint x="196" y="340"/><di:waypoint x="260" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_2_di" bpmnElement="Flow_R_2">
        <di:waypoint x="420" y="340"/><di:waypoint x="475" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_3_Si_di" bpmnElement="Flow_R_3_Si">
        <di:waypoint x="525" y="340"/><di:waypoint x="580" y="340"/>
        <bpmndi:BPMNLabel><dc:Bounds x="540" y="320" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_3_No_di" bpmnElement="Flow_R_3_No">
        <di:waypoint x="500" y="365"/><di:waypoint x="500" y="460"/><di:waypoint x="1090" y="460"/>
        <bpmndi:BPMNLabel><dc:Bounds x="510" y="380" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_4_di" bpmnElement="Flow_R_4">
        <di:waypoint x="740" y="340"/><di:waypoint x="780" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_5_di" bpmnElement="Flow_R_5">
        <di:waypoint x="940" y="340"/><di:waypoint x="990" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_6_Si_di" bpmnElement="Flow_R_6_Si">
        <di:waypoint x="1040" y="340"/><di:waypoint x="1090" y="340"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1055" y="320" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_6_No_di" bpmnElement="Flow_R_6_No">
        <di:waypoint x="1015" y="365"/><di:waypoint x="1015" y="460"/><di:waypoint x="1090" y="460"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1025" y="380" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_7_di" bpmnElement="Flow_R_7">
        <di:waypoint x="1250" y="340"/><di:waypoint x="1295" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_8_Si_di" bpmnElement="Flow_R_8_Si">
        <di:waypoint x="1345" y="340"/><di:waypoint x="1395" y="340"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1360" y="320" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_8_No_di" bpmnElement="Flow_R_8_No">
        <di:waypoint x="1320" y="365"/><di:waypoint x="1320" y="460"/><di:waypoint x="1250" y="460"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1330" y="380" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_9_Si_di" bpmnElement="Flow_R_9_Si">
        <di:waypoint x="1445" y="340"/><di:waypoint x="1500" y="340"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1460" y="320" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_9_No_di" bpmnElement="Flow_R_9_No">
        <di:waypoint x="1420" y="315"/><di:waypoint x="1420" y="280"/><di:waypoint x="1480" y="280"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1430" y="290" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_10_di" bpmnElement="Flow_R_10">
        <di:waypoint x="1480" y="240"/><di:waypoint x="1580" y="240"/><di:waypoint x="1580" y="300"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_11_di" bpmnElement="Flow_R_11">
        <di:waypoint x="1660" y="340"/><di:waypoint x="1700" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_12_di" bpmnElement="Flow_R_12">
        <di:waypoint x="1860" y="340"/><di:waypoint x="1915" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_13_Si_di" bpmnElement="Flow_R_13_Si">
        <di:waypoint x="1965" y="340"/><di:waypoint x="2020" y="340"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1980" y="320" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_13_No_di" bpmnElement="Flow_R_13_No">
        <di:waypoint x="1940" y="365"/><di:waypoint x="1940" y="460"/><di:waypoint x="1250" y="460"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1950" y="380" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_14_di" bpmnElement="Flow_R_14">
        <di:waypoint x="2180" y="340"/><di:waypoint x="2225" y="340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_15_Si_di" bpmnElement="Flow_R_15_Si">
        <di:waypoint x="2275" y="340"/><di:waypoint x="2310" y="340"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2285" y="320" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_15_No_di" bpmnElement="Flow_R_15_No">
        <di:waypoint x="2250" y="365"/><di:waypoint x="2250" y="460"/><di:waypoint x="1250" y="460"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2260" y="380" width="20" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_16_di" bpmnElement="Flow_R_16">
        <di:waypoint x="2390" y="300"/><di:waypoint x="2390" y="240"/><di:waypoint x="2440" y="240"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_R_17_di" bpmnElement="Flow_R_17">
        <di:waypoint x="1250" y="460"/><di:waypoint x="1310" y="460"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Participant_SAP_di" bpmnElement="Participant_SAP" isHorizontal="true">
        <dc:Bounds x="100" y="520" width="2400" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_RecibirFactura_di" bpmnElement="Task_RecibirFactura">
        <dc:Bounds x="2310" y="535" width="160" height="50"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_Excepcion_di" bpmnElement="Participant_Excepcion" isHorizontal="true">
        <dc:Bounds x="100" y="620" width="2400" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_RevisionManual_di" bpmnElement="Task_RevisionManual">
        <dc:Bounds x="1110" y="635" width="160" height="50"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="MF_1_di" bpmnElement="MF_1">
        <di:waypoint x="510" y="140"/><di:waypoint x="510" y="200"/><di:waypoint x="178" y="200"/><di:waypoint x="178" y="322"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_2_di" bpmnElement="MF_2">
        <di:waypoint x="2390" y="380"/><di:waypoint x="2390" y="535"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_3_di" bpmnElement="MF_3">
        <di:waypoint x="1170" y="490"/><di:waypoint x="1170" y="635"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
