<?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_Recaudacion"
                  targetNamespace="http://workmed.cl/bpmn/recaudacion"
                  exporter="EMERCOM SpA"
                  exporterVersion="2.0">

  <bpmn:collaboration id="Collaboration_RE">
    <bpmn:participant id="Participant_WM" name="Workmed - Recaudacion y Cobranza · Pipeline aging HubSpot + Conciliacion Defontana" processRef="Process_WM"/>
    <bpmn:participant id="Participant_CL" name="Cliente Mandante (Mineras top 5-10 · 80-90% ingresos · peores pagadoras)" processRef="Process_CL"/>
    <bpmn:participant id="Participant_FX" name="Empresa de Factoring (compradora cesion)" processRef="Process_FX"/>

    <bpmn:messageFlow id="MF_FacturaSII" sourceRef="Task_EmiteFactura" targetRef="Recv_Factura_CL"/>
    <bpmn:messageFlow id="MF_RechazoSII" sourceRef="Task_RechazaSII_CL" targetRef="Recv_RechazoSII"/>
    <bpmn:messageFlow id="MF_PagoCliente" sourceRef="Task_Paga_CL" targetRef="Task_Concilia"/>
    <bpmn:messageFlow id="MF_NegociaComercial" sourceRef="Task_NegociaCaso" targetRef="Recv_Negocia_CL"/>
    <bpmn:messageFlow id="MF_CesionFactoring" sourceRef="Send_CederFactura" targetRef="Recv_CesionFX"/>
    <bpmn:messageFlow id="MF_PagoFactoring" sourceRef="Task_PagaCesion_FX" targetRef="Task_Concilia"/>
  </bpmn:collaboration>

  <!-- ============================================================
       POOL 1 · WORKMED (8 lanes)
       ============================================================ -->
  <bpmn:process id="Process_WM" isExecutable="false">
    <bpmn:laneSet id="LaneSet_WM">
      <bpmn:lane id="Lane_Coustasse" name="Juan Pablo Coustasse · CFO (escalamiento +90d · gobierno financiero)">
        <bpmn:flowNodeRef>Task_EscalaCFO</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_Bloquear</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_SuspendeAtenciones</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Bloqueo</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Roberto" name="Roberto · Operacion Recaudacion (jefatura)">
        <bpmn:flowNodeRef>Start_WM</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_CrearEDP</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_EmiteFactura</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Belen" name="Supervisora de Facturacion · Conciliacion HubSpot ↔ Defontana (unica figura transversal · RN-7)">
        <bpmn:flowNodeRef>Recv_RechazoSII</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_ProcesaRechazoSII</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_ConfirmaAprobado</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_Aprobado</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_IteraEDP</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Estado_PorVencer</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_PagaAntesVence</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Concilia</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Pagada</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>SubProc_ConciliacionMensual</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Analistas" name="Analistas Cobranza · cartera asignada (RN-10 nadie cruza fronteras)">
        <bpmn:flowNodeRef>Estado_Vencida</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_GestionVencida</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_90dias</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Recordatorio</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Estado_Vencida90</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>GW_Factoring</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Castigo</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>SubProc_AtencionesColgadas</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Comercial" name="Comercial / KAM (negociacion post-vencido + descuentos tardios · debilita cobranza · RN-3)">
        <bpmn:flowNodeRef>Task_NegociaCaso</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Factoring" name="Factoring externo (cesion de facturas · flujo aparte)">
        <bpmn:flowNodeRef>Send_CederFactura</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Factoring</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Sistemas" name="Sistemas (HubSpot · Defontana · Excel · FlowMed · Script Python valorizacion)">
        <bpmn:flowNodeRef>SubProc_Valorizacion</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>SubProc_PMO</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_HubFact</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_HubCob</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_Defontana</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_Excel</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_FlowMed</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>DS_PythonScript</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>

    <!-- ============ EVENTOS ============ -->
    <bpmn:startEvent id="Start_WM" name="Factura emitida (handoff Finanzas)">
      <bpmn:outgoing>F1</bpmn:outgoing>
    </bpmn:startEvent>

    <!-- ============ ROBERTO · CREAR EDP + EMITIR FACTURA ============ -->
    <bpmn:serviceTask id="Task_CrearEDP" name="Crear EDP en HubSpot pipeline Cobranza · estado Esperando aprobacion (RN-1 gobernado por fechas)">
      <bpmn:incoming>F1</bpmn:incoming>
      <bpmn:outgoing>F2</bpmn:outgoing>
      <bpmn:dataOutputAssociation id="DOA_HubCob_Crea">
        <bpmn:targetRef>DS_HubCob</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:serviceTask>

    <bpmn:userTask id="Task_EmiteFactura" name="Emitir factura tributaria SII desde Defontana (RN-6 · NO en HubSpot)">
      <bpmn:incoming>F2</bpmn:incoming>
      <bpmn:outgoing>F3</bpmn:outgoing>
      <bpmn:dataOutputAssociation id="DOA_Def_Factura">
        <bpmn:targetRef>DS_Defontana</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>

    <!-- ============ BELEN · GATE 8 DIAS LEGAL + CONFIRMA APROBADO ============ -->
    <bpmn:receiveTask id="Recv_RechazoSII" name="(boundary timer 8 dias legales) Recibe rechazo formal SII · RN-2.2.2 unico hito duro">
      <bpmn:incoming>F3</bpmn:incoming>
      <bpmn:outgoing>F_Rechazo</bpmn:outgoing>
    </bpmn:receiveTask>

    <bpmn:manualTask id="Task_ProcesaRechazoSII" name="Procesar rechazo legal SII · emitir nota credito en Defontana · loop iterar EDP con Finanzas">
      <bpmn:incoming>F_Rechazo</bpmn:incoming>
      <bpmn:outgoing>F_RechazoOut</bpmn:outgoing>
      <bpmn:dataOutputAssociation id="DOA_Def_NC">
        <bpmn:targetRef>DS_Defontana</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:manualTask>

    <bpmn:userTask id="Task_ConfirmaAprobado" name="Confirmar EDP aceptado por cliente (estado Esperando aprobacion · peloteo extremo 2 meses · EX cliente confuso)">
      <bpmn:incoming>F_RechazoOut</bpmn:incoming>
      <bpmn:outgoing>F4</bpmn:outgoing>
      <bpmn:dataOutputAssociation id="DOA_Hub_Aprobado">
        <bpmn:targetRef>DS_HubCob</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>

    <bpmn:exclusiveGateway id="GW_Aprobado" name="¿Aprobado por cliente?">
      <bpmn:incoming>F4</bpmn:incoming>
      <bpmn:outgoing>F_NoAprob</bpmn:outgoing>
      <bpmn:outgoing>F_SiAprob</bpmn:outgoing>
    </bpmn:exclusiveGateway>

    <bpmn:userTask id="Task_IteraEDP" name="Iterar EDP con Finanzas · ciclo nominal 5 dias · casos extremos hasta 2 meses">
      <bpmn:incoming>F_NoAprob</bpmn:incoming>
      <bpmn:outgoing>F_Itera</bpmn:outgoing>
    </bpmn:userTask>

    <!-- ============ ESTADO POR VENCER (timer hasta vencimiento) ============ -->
    <bpmn:intermediateCatchEvent id="Estado_PorVencer" name="Estado: Por vencer · timer hasta fecha vencimiento (RN-1 avanza por fecha)">
      <bpmn:incoming>F_SiAprob</bpmn:incoming>
      <bpmn:outgoing>F5</bpmn:outgoing>
      <bpmn:timerEventDefinition id="Tdef_PorVencer"/>
    </bpmn:intermediateCatchEvent>

    <bpmn:exclusiveGateway id="GW_PagaAntesVence" name="¿Pagada antes de vencer?">
      <bpmn:incoming>F5</bpmn:incoming>
      <bpmn:outgoing>F_PagaPlazo</bpmn:outgoing>
      <bpmn:outgoing>F_NoPaga</bpmn:outgoing>
    </bpmn:exclusiveGateway>

    <bpmn:manualTask id="Task_Concilia" name="Conciliar pago HubSpot ↔ Defontana (Excel manual · RN-7)">
      <bpmn:incoming>F_PagaPlazo</bpmn:incoming>
      <bpmn:outgoing>F_Pagada</bpmn:outgoing>
      <bpmn:dataInputAssociation id="DIA_Concilia_Hub">
        <bpmn:sourceRef>DS_HubCob</bpmn:sourceRef>
        <bpmn:targetRef>Task_Concilia</bpmn:targetRef>
      </bpmn:dataInputAssociation>
      <bpmn:dataInputAssociation id="DIA_Concilia_Def">
        <bpmn:sourceRef>DS_Defontana</bpmn:sourceRef>
        <bpmn:targetRef>Task_Concilia</bpmn:targetRef>
      </bpmn:dataInputAssociation>
    </bpmn:manualTask>

    <bpmn:endEvent id="End_Pagada" name="Estado terminal: Pagada">
      <bpmn:incoming>F_Pagada</bpmn:incoming>
      <bpmn:incoming>F_PagadaPostFx</bpmn:incoming>
    </bpmn:endEvent>

    <!-- ============ ESTADO VENCIDA + GESTION + GATE 90 DIAS ============ -->
    <bpmn:intermediateCatchEvent id="Estado_Vencida" name="Estado: Vencida (0-90d desde vencimiento)">
      <bpmn:incoming>F_NoPaga</bpmn:incoming>
      <bpmn:outgoing>F6</bpmn:outgoing>
    </bpmn:intermediateCatchEvent>

    <bpmn:userTask id="Task_GestionVencida" name="Gestion cobranza vencida · correos+llamadas registradas en HubSpot · RN-10 cartera estricta">
      <bpmn:incoming>F6</bpmn:incoming>
      <bpmn:incoming>F_Recordatorio</bpmn:incoming>
      <bpmn:outgoing>F7</bpmn:outgoing>
    </bpmn:userTask>

    <bpmn:exclusiveGateway id="GW_90dias" name="¿Transcurrieron 90d desde emision?">
      <bpmn:incoming>F7</bpmn:incoming>
      <bpmn:outgoing>F_Menos90</bpmn:outgoing>
      <bpmn:outgoing>F_Mas90</bpmn:outgoing>
    </bpmn:exclusiveGateway>

    <bpmn:userTask id="Task_Recordatorio" name="Recordatorio + gestion telefonica (descuento pronto pago 2% no mueve la aguja)">
      <bpmn:incoming>F_Menos90</bpmn:incoming>
      <bpmn:outgoing>F_Recordatorio</bpmn:outgoing>
    </bpmn:userTask>

    <bpmn:intermediateCatchEvent id="Estado_Vencida90" name="Estado: Vencida +90d (incobrable estructural)">
      <bpmn:incoming>F_Mas90</bpmn:incoming>
      <bpmn:outgoing>F8</bpmn:outgoing>
    </bpmn:intermediateCatchEvent>

    <!-- ============ ESCALAMIENTO +90D · COUSTASSE + COMERCIAL ============ -->
    <bpmn:sendTask id="Task_EscalaCFO" name="Escalar caso +90d a Comercial + Coustasse · reunion caso a caso (RN-3)">
      <bpmn:incoming>F8</bpmn:incoming>
      <bpmn:outgoing>F9</bpmn:outgoing>
    </bpmn:sendTask>

    <bpmn:userTask id="Task_NegociaCaso" name="Negociar caso a caso · le vende para que nos pague el que no nos paga (debilita cobranza · RN-3)">
      <bpmn:incoming>F9</bpmn:incoming>
      <bpmn:outgoing>F10</bpmn:outgoing>
    </bpmn:userTask>

    <bpmn:exclusiveGateway id="GW_Bloquear" name="¿Bloquear cliente? (excepcion · NO default)">
      <bpmn:incoming>F10</bpmn:incoming>
      <bpmn:outgoing>F_BloqSi</bpmn:outgoing>
      <bpmn:outgoing>F_BloqNo</bpmn:outgoing>
    </bpmn:exclusiveGateway>

    <bpmn:serviceTask id="Task_SuspendeAtenciones" name="Suspender atenciones (palanca contractual · raro · documentado por correo sin sistema)">
      <bpmn:incoming>F_BloqSi</bpmn:incoming>
      <bpmn:outgoing>F_Bloqueo</bpmn:outgoing>
    </bpmn:serviceTask>

    <bpmn:endEvent id="End_Bloqueo" name="Estado terminal: Cliente bloqueado">
      <bpmn:incoming>F_Bloqueo</bpmn:incoming>
    </bpmn:endEvent>

    <!-- ============ FACTORING ============ -->
    <bpmn:exclusiveGateway id="GW_Factoring" name="¿Cesion a factoring?">
      <bpmn:incoming>F_BloqNo</bpmn:incoming>
      <bpmn:outgoing>F_FxSi</bpmn:outgoing>
      <bpmn:outgoing>F_FxNo</bpmn:outgoing>
    </bpmn:exclusiveGateway>

    <bpmn:sendTask id="Send_CederFactura" name="Cesion de factura a factoring externo (flujo aparte · RN-2.2.3)">
      <bpmn:incoming>F_FxSi</bpmn:incoming>
      <bpmn:outgoing>F_Cedida</bpmn:outgoing>
    </bpmn:sendTask>

    <bpmn:endEvent id="End_Factoring" name="Estado terminal: Factoring (Cedida)">
      <bpmn:incoming>F_Cedida</bpmn:incoming>
    </bpmn:endEvent>

    <bpmn:endEvent id="End_Castigo" name="Estado terminal: Castigo / loop gestion (sin pago)">
      <bpmn:incoming>F_FxNo</bpmn:incoming>
    </bpmn:endEvent>

    <bpmn:sequenceFlow id="F_PagadaPostFx" sourceRef="Send_CederFactura" targetRef="End_Pagada"/>

    <!-- ============ SUB-PROCESOS PARALELOS ============ -->

    <!-- Conciliacion mensual Supervisora de Facturacion -->
    <bpmn:subProcess id="SubProc_ConciliacionMensual" name="Conciliacion mensual HubSpot ↔ Defontana · 100% manual (RN-7)">
      <bpmn:startEvent id="CM_Start" name="Cierre mes"><bpmn:outgoing>CM_F1</bpmn:outgoing></bpmn:startEvent>
      <bpmn:manualTask id="CM_Excel" name="Excel manual exportado de Contabilidad cruzado a mano (Supervisora de Facturacion unica figura transversal)">
        <bpmn:incoming>CM_F1</bpmn:incoming><bpmn:outgoing>CM_F2</bpmn:outgoing>
      </bpmn:manualTask>
      <bpmn:userTask id="CM_Actualiza" name="Actualizar TODAS las columnas pipeline (no solo gateway final · Esperando · Por vencer · Vencida · +90d)">
        <bpmn:incoming>CM_F2</bpmn:incoming><bpmn:outgoing>CM_F3</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:endEvent id="CM_End" name="Estados HubSpot reflejan Defontana"><bpmn:incoming>CM_F3</bpmn:incoming></bpmn:endEvent>
      <bpmn:sequenceFlow id="CM_F1" sourceRef="CM_Start" targetRef="CM_Excel"/>
      <bpmn:sequenceFlow id="CM_F2" sourceRef="CM_Excel" targetRef="CM_Actualiza"/>
      <bpmn:sequenceFlow id="CM_F3" sourceRef="CM_Actualiza" targetRef="CM_End"/>
    </bpmn:subProcess>

    <!-- Valorizacion Ignacio + Rodrigo -->
    <bpmn:subProcess id="SubProc_Valorizacion" name="Valorizacion · Ignacio (operador) + Rodrigo (autor) · Script Python 2.553 lineas">
      <bpmn:startEvent id="VL_Start" name="Descarga diaria Control de pago"><bpmn:outgoing>VL_F1</bpmn:outgoing></bpmn:startEvent>
      <bpmn:serviceTask id="VL_Script" name="Ejecutar script Python (GitHub personal Rodrigo · migracion pendiente Christian Urbina)">
        <bpmn:incoming>VL_F1</bpmn:incoming><bpmn:outgoing>VL_F2</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:serviceTask id="VL_Descuentos" name="Recalcular descuentos por tramo · Syncore 16% sobre 750 = $33M sobre $208M (RN-9 · RN-10 ejemplo)">
        <bpmn:incoming>VL_F2</bpmn:incoming><bpmn:outgoing>VL_F3</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:manualTask id="VL_Cierre" name="Re-descargar 1-31 al cierre · comparar consolidado vs full · cierre inestable (RN-15)">
        <bpmn:incoming>VL_F3</bpmn:incoming><bpmn:outgoing>VL_F4</bpmn:outgoing>
      </bpmn:manualTask>
      <bpmn:endEvent id="VL_End" name="Produccion valorizada con IVA entregada a la Supervisora de Facturacion"><bpmn:incoming>VL_F4</bpmn:incoming></bpmn:endEvent>
      <bpmn:sequenceFlow id="VL_F1" sourceRef="VL_Start" targetRef="VL_Script"/>
      <bpmn:sequenceFlow id="VL_F2" sourceRef="VL_Script" targetRef="VL_Descuentos"/>
      <bpmn:sequenceFlow id="VL_F3" sourceRef="VL_Descuentos" targetRef="VL_Cierre"/>
      <bpmn:sequenceFlow id="VL_F4" sourceRef="VL_Cierre" targetRef="VL_End"/>
    </bpmn:subProcess>

    <!-- PMO Monica -->
    <bpmn:subProcess id="SubProc_PMO" name="Monica · PMO · monitoreo aging + alerta gestion proactiva">
      <bpmn:startEvent id="PMO_Start" name="Aging detectado"><bpmn:outgoing>PMO_F1</bpmn:outgoing></bpmn:startEvent>
      <bpmn:userTask id="PMO_Monitor" name="Monitorear aging pipeline + retransmitir avisos descuento no aplicado a Ignacio (sin tickets · correo)">
        <bpmn:incoming>PMO_F1</bpmn:incoming><bpmn:outgoing>PMO_F2</bpmn:outgoing>
      </bpmn:userTask>
      <bpmn:endEvent id="PMO_End" name="Alerta gatillada"><bpmn:incoming>PMO_F2</bpmn:incoming></bpmn:endEvent>
      <bpmn:sequenceFlow id="PMO_F1" sourceRef="PMO_Start" targetRef="PMO_Monitor"/>
      <bpmn:sequenceFlow id="PMO_F2" sourceRef="PMO_Monitor" targetRef="PMO_End"/>
    </bpmn:subProcess>

    <!-- Atenciones colgadas HU-12 -->
    <bpmn:subProcess id="SubProc_AtencionesColgadas" name="Atenciones colgadas (HU-12) · cambios post-agendamiento que rompen EDP">
      <bpmn:startEvent id="AC_Start" name="Cambio post-agendamiento"><bpmn:outgoing>AC_F1</bpmn:outgoing></bpmn:startEvent>
      <bpmn:manualTask id="AC_Gestiona" name="Gestionar cambio centro costo / proyecto / solicitante · cultivos pendientes · inasistentes excluidos (RN-13/RN-14)">
        <bpmn:incoming>AC_F1</bpmn:incoming><bpmn:outgoing>AC_F2</bpmn:outgoing>
      </bpmn:manualTask>
      <bpmn:endEvent id="AC_End" name="Atencion resuelta o colgada manualmente"><bpmn:incoming>AC_F2</bpmn:incoming></bpmn:endEvent>
      <bpmn:sequenceFlow id="AC_F1" sourceRef="AC_Start" targetRef="AC_Gestiona"/>
      <bpmn:sequenceFlow id="AC_F2" sourceRef="AC_Gestiona" targetRef="AC_End"/>
    </bpmn:subProcess>

    <!-- ============ DATA STORES ============ -->
    <bpmn:dataStoreReference id="DS_HubFact" name="HubSpot Pipeline Facturacion (Cargado · Envio · Aprobado · Facturado)"/>
    <bpmn:dataStoreReference id="DS_HubCob" name="HubSpot Pipeline Cobranza (Esperando · Por vencer · Vencida · +90d · Pagada · NC · Cedida)"/>
    <bpmn:dataStoreReference id="DS_Defontana" name="Defontana ERP (notas venta · facturas SII · deudores comerciales)"/>
    <bpmn:dataStoreReference id="DS_Excel" name="Excel manual conciliacion (Supervisora de Facturacion · 100% manual · RN-7)"/>
    <bpmn:dataStoreReference id="DS_FlowMed" name="FlowMed/Secall + AWS RDS read-replica (Eduardo unico gatekeeper)"/>
    <bpmn:dataStoreReference id="DS_PythonScript" name="Script Python valorizacion 2.553 lineas (GitHub personal Rodrigo)"/>

    <!-- ============ SEQUENCE FLOWS ============ -->
    <bpmn:sequenceFlow id="F1" sourceRef="Start_WM" targetRef="Task_CrearEDP"/>
    <bpmn:sequenceFlow id="F2" sourceRef="Task_CrearEDP" targetRef="Task_EmiteFactura"/>
    <bpmn:sequenceFlow id="F3" sourceRef="Task_EmiteFactura" targetRef="Recv_RechazoSII"/>
    <bpmn:sequenceFlow id="F_Rechazo" name="rechazo SII en 8d (RN-2.2.2)" sourceRef="Recv_RechazoSII" targetRef="Task_ProcesaRechazoSII"/>
    <bpmn:sequenceFlow id="F_RechazoOut" sourceRef="Task_ProcesaRechazoSII" targetRef="Task_ConfirmaAprobado"/>
    <bpmn:sequenceFlow id="F4" sourceRef="Task_ConfirmaAprobado" targetRef="GW_Aprobado"/>
    <bpmn:sequenceFlow id="F_NoAprob" name="No · peloteo" sourceRef="GW_Aprobado" targetRef="Task_IteraEDP"/>
    <bpmn:sequenceFlow id="F_Itera" sourceRef="Task_IteraEDP" targetRef="Task_ConfirmaAprobado"/>
    <bpmn:sequenceFlow id="F_SiAprob" name="Si" sourceRef="GW_Aprobado" targetRef="Estado_PorVencer"/>
    <bpmn:sequenceFlow id="F5" sourceRef="Estado_PorVencer" targetRef="GW_PagaAntesVence"/>
    <bpmn:sequenceFlow id="F_PagaPlazo" name="Si paga" sourceRef="GW_PagaAntesVence" targetRef="Task_Concilia"/>
    <bpmn:sequenceFlow id="F_Pagada" sourceRef="Task_Concilia" targetRef="End_Pagada"/>
    <bpmn:sequenceFlow id="F_NoPaga" name="No · vence" sourceRef="GW_PagaAntesVence" targetRef="Estado_Vencida"/>
    <bpmn:sequenceFlow id="F6" sourceRef="Estado_Vencida" targetRef="Task_GestionVencida"/>
    <bpmn:sequenceFlow id="F7" sourceRef="Task_GestionVencida" targetRef="GW_90dias"/>
    <bpmn:sequenceFlow id="F_Menos90" name="&lt;90d" sourceRef="GW_90dias" targetRef="Task_Recordatorio"/>
    <bpmn:sequenceFlow id="F_Recordatorio" sourceRef="Task_Recordatorio" targetRef="Task_GestionVencida"/>
    <bpmn:sequenceFlow id="F_Mas90" name="≥90d" sourceRef="GW_90dias" targetRef="Estado_Vencida90"/>
    <bpmn:sequenceFlow id="F8" sourceRef="Estado_Vencida90" targetRef="Task_EscalaCFO"/>
    <bpmn:sequenceFlow id="F9" sourceRef="Task_EscalaCFO" targetRef="Task_NegociaCaso"/>
    <bpmn:sequenceFlow id="F10" sourceRef="Task_NegociaCaso" targetRef="GW_Bloquear"/>
    <bpmn:sequenceFlow id="F_BloqSi" name="Si (excepcion)" sourceRef="GW_Bloquear" targetRef="Task_SuspendeAtenciones"/>
    <bpmn:sequenceFlow id="F_Bloqueo" sourceRef="Task_SuspendeAtenciones" targetRef="End_Bloqueo"/>
    <bpmn:sequenceFlow id="F_BloqNo" name="No (default RN-3)" sourceRef="GW_Bloquear" targetRef="GW_Factoring"/>
    <bpmn:sequenceFlow id="F_FxSi" name="Si" sourceRef="GW_Factoring" targetRef="Send_CederFactura"/>
    <bpmn:sequenceFlow id="F_Cedida" sourceRef="Send_CederFactura" targetRef="End_Factoring"/>
    <bpmn:sequenceFlow id="F_FxNo" name="No · loop o castigo" sourceRef="GW_Factoring" targetRef="End_Castigo"/>

    <!-- ============ TEXT ANNOTATIONS ============ -->
    <bpmn:textAnnotation id="Ann_RN1">
      <bpmn:text>RN-1 · Pipeline gobernado por fechas (no por estado real). Sistema de gestion torcido: la columna avanza por reloj, la realidad puede diferir [Recaudacion-20260423 9:57, 10:26]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN1" sourceRef="Ann_RN1" targetRef="Estado_PorVencer"/>

    <bpmn:textAnnotation id="Ann_RN222">
      <bpmn:text>RN-2.2.2 · Plazo legal 8 dias corridos para rechazo SII desde emision. UNICO HITO DURO regulatorio del pipeline [Recaudacion-20260423 10:26, 29:42]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN222" sourceRef="Ann_RN222" targetRef="Recv_RechazoSII"/>

    <bpmn:textAnnotation id="Ann_RN3">
      <bpmn:text>RN-3 · Politica NO bloquear (default). Excepcional si: coordinado caso a caso Comercial-Finanzas. "Le vende para que nos pague el que no nos paga" debilita cobranza [Recaudacion-20260423 32:26, 1:07:16, 1:07:42]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN3" sourceRef="Ann_RN3" targetRef="Task_NegociaCaso"/>

    <bpmn:textAnnotation id="Ann_RN7">
      <bpmn:text>RN-7 · Conciliacion 100% manual. La Supervisora de Facturacion exporta Excel Defontana, exporta HubSpot, cruza a mano. Unica figura transversal [Recaudacion-20260423 11:52, 12:22]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN7" sourceRef="Ann_RN7" targetRef="SubProc_ConciliacionMensual"/>

    <bpmn:textAnnotation id="Ann_RN10">
      <bpmn:text>RN-10 · Cartera estricta · "nadie toca clientes que no son de ellos". Cada analista trabaja solo SU cartera [Recaudacion-20260423 37:32, 37:59]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN10" sourceRef="Ann_RN10" targetRef="Task_GestionVencida"/>

    <bpmn:textAnnotation id="Ann_RN15">
      <bpmn:text>RN-15 · Cierre de mes inestable · re-descarga 1-31 al cierre, comparar consolidado vs full. Cambios estructurales (100→150 filas) requieren re-cobrar o devolver [Recaudacion-20260423 1:33:20, 1:33:37]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_RN15" sourceRef="Ann_RN15" targetRef="SubProc_Valorizacion"/>

    <bpmn:textAnnotation id="Ann_Mineras">
      <bpmn:text>80-90% ingresos en 5-10 mineras top = peores pagadoras (problema estructural). Empresas de proyecto: bola de nieve si mandante no paga al proyecto [Recaudacion-20260423 30:37, 31:05]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_Mineras" sourceRef="Ann_Mineras" targetRef="Estado_Vencida90"/>

    <bpmn:textAnnotation id="Ann_Volumen">
      <bpmn:text>Volumen: 300-400 EDPs/mes · ~957-3000 filas archivo EDP · facturas $20-40M (extremos $300-400M) · costo evaluacion ~$300.000/persona · descuento pronto pago 2% "no mueve la aguja" [Recaudacion-20260423 6:06, 25:00, 30:09, 31:05]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_Volumen" sourceRef="Ann_Volumen" targetRef="Task_CrearEDP"/>

    <bpmn:textAnnotation id="Ann_HubSpot">
      <bpmn:text>HubSpot vulnerable: "tiene vulnerabilidades muy importantes" (Rodrigo). HubSpot↔FlowMed sin integracion desde 2024 (E-10). Recarga mensual contactos por restriccion externo configurador (RN-8) [Recaudacion-20260423 4:15]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_HubSpot" sourceRef="Ann_HubSpot" targetRef="DS_HubCob"/>

    <bpmn:textAnnotation id="Ann_Eduardo">
      <bpmn:text>Eduardo Gonzalez · gatekeeper UNICO acceso AWS RDS read-replica FlowMed/Secall · punto unico de falla §6.3 [Recaudacion-20260423 1:25:32, 1:38:42]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_Eduardo" sourceRef="Ann_Eduardo" targetRef="DS_FlowMed"/>

    <bpmn:textAnnotation id="Ann_Identidad">
      <bpmn:text>Identidad fragmentada: 1 cliente vive en 4 sistemas (FlowMed · HubSpot · Defontana · comercial). Script Python depura variantes RUT (mayoria del codigo) [Recaudacion-20260423 1:30:35, 1:38:13, 1:39:12]</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="Assoc_Identidad" sourceRef="Ann_Identidad" targetRef="DS_PythonScript"/>

  </bpmn:process>

  <!-- ============================================================
       POOL 2 · CLIENTE MANDANTE
       ============================================================ -->
  <bpmn:process id="Process_CL" isExecutable="false">
    <bpmn:startEvent id="Start_CL" name="Espera factura"><bpmn:outgoing>FC1</bpmn:outgoing></bpmn:startEvent>
    <bpmn:receiveTask id="Recv_Factura_CL" name="Recibe factura tributaria SII">
      <bpmn:incoming>FC1</bpmn:incoming><bpmn:outgoing>FC2</bpmn:outgoing>
    </bpmn:receiveTask>
    <bpmn:exclusiveGateway id="GW_RechazaCL" name="¿Rechaza en 8d? (RN-2.2.2)">
      <bpmn:incoming>FC2</bpmn:incoming>
      <bpmn:outgoing>FC_Rech</bpmn:outgoing>
      <bpmn:outgoing>FC_NoRech</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:sendTask id="Task_RechazaSII_CL" name="Rechaza factura SII (motivos: confusion · cambios CC · firmas ausentes)">
      <bpmn:incoming>FC_Rech</bpmn:incoming><bpmn:outgoing>FC_RechEnd</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:endEvent id="End_CL_Rech" name="Iteracion EDP"><bpmn:incoming>FC_RechEnd</bpmn:incoming></bpmn:endEvent>

    <bpmn:receiveTask id="Recv_Negocia_CL" name="Recibe negociacion Comercial post-+90d">
      <bpmn:incoming>FC_NoRech</bpmn:incoming><bpmn:outgoing>FC3</bpmn:outgoing>
    </bpmn:receiveTask>
    <bpmn:userTask id="Task_Paga_CL" name="Paga (en plazo o tardio · DSO real excede 30 dias · bola de nieve mandante-proyecto)">
      <bpmn:incoming>FC3</bpmn:incoming><bpmn:outgoing>FC4</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:endEvent id="End_CL" name="Pago realizado"><bpmn:incoming>FC4</bpmn:incoming></bpmn:endEvent>

    <bpmn:sequenceFlow id="FC1" sourceRef="Start_CL" targetRef="Recv_Factura_CL"/>
    <bpmn:sequenceFlow id="FC2" sourceRef="Recv_Factura_CL" targetRef="GW_RechazaCL"/>
    <bpmn:sequenceFlow id="FC_Rech" name="Si" sourceRef="GW_RechazaCL" targetRef="Task_RechazaSII_CL"/>
    <bpmn:sequenceFlow id="FC_RechEnd" sourceRef="Task_RechazaSII_CL" targetRef="End_CL_Rech"/>
    <bpmn:sequenceFlow id="FC_NoRech" name="No" sourceRef="GW_RechazaCL" targetRef="Recv_Negocia_CL"/>
    <bpmn:sequenceFlow id="FC3" sourceRef="Recv_Negocia_CL" targetRef="Task_Paga_CL"/>
    <bpmn:sequenceFlow id="FC4" sourceRef="Task_Paga_CL" targetRef="End_CL"/>
  </bpmn:process>

  <!-- ============================================================
       POOL 3 · FACTORING EXTERNO
       ============================================================ -->
  <bpmn:process id="Process_FX" isExecutable="false">
    <bpmn:startEvent id="Start_FX" name="Espera cesion"><bpmn:outgoing>FX1</bpmn:outgoing></bpmn:startEvent>
    <bpmn:receiveTask id="Recv_CesionFX" name="Recibe cesion factura">
      <bpmn:incoming>FX1</bpmn:incoming><bpmn:outgoing>FX2</bpmn:outgoing>
    </bpmn:receiveTask>
    <bpmn:userTask id="Task_PagaCesion_FX" name="Paga cesion a Workmed (descuento factoring · cobranza queda con factoring)">
      <bpmn:incoming>FX2</bpmn:incoming><bpmn:outgoing>FX3</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:endEvent id="End_FX" name="Cesion liquidada"><bpmn:incoming>FX3</bpmn:incoming></bpmn:endEvent>

    <bpmn:sequenceFlow id="FX1" sourceRef="Start_FX" targetRef="Recv_CesionFX"/>
    <bpmn:sequenceFlow id="FX2" sourceRef="Recv_CesionFX" targetRef="Task_PagaCesion_FX"/>
    <bpmn:sequenceFlow id="FX3" sourceRef="Task_PagaCesion_FX" targetRef="End_FX"/>
  </bpmn:process>

  <!-- ============================================================
       LAYOUT
       Pool WM x=120 y=60 w=4400 h=1820
       Lanes:
         Coustasse    y=60   h=180  (60..240)
         Roberto      y=240  h=160  (240..400)
         Supervisora  y=400  h=220  (400..620)
         Analistas    y=620  h=220  (620..840)
         Comercial    y=840  h=160  (840..1000)
         Factoring    y=1000 h=160  (1000..1160)
         Sistemas     y=1160 h=660  (1160..1820)
       Pool Cliente   y=1860 h=180  (1860..2040)
       Pool Factoring y=2080 h=160  (2080..2240)
       Annotations    y=2280..2480 below pools
       ============================================================ -->
  <bpmndi:BPMNDiagram id="Diagram_RE">
    <bpmndi:BPMNPlane id="Plane_RE" bpmnElement="Collaboration_RE">

      <!-- POOL 1 · Workmed -->
      <bpmndi:BPMNShape id="Participant_WM_di" bpmnElement="Participant_WM" isHorizontal="true">
        <dc:Bounds x="120" y="60" width="4400" height="1760"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Coustasse_di" bpmnElement="Lane_Coustasse" isHorizontal="true">
        <dc:Bounds x="150" y="60" width="4370" height="180"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Roberto_di" bpmnElement="Lane_Roberto" isHorizontal="true">
        <dc:Bounds x="150" y="240" width="4370" height="160"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Belen_di" bpmnElement="Lane_Belen" isHorizontal="true">
        <dc:Bounds x="150" y="400" width="4370" height="220"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Analistas_di" bpmnElement="Lane_Analistas" isHorizontal="true">
        <dc:Bounds x="150" y="620" width="4370" height="220"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Comercial_di" bpmnElement="Lane_Comercial" isHorizontal="true">
        <dc:Bounds x="150" y="840" width="4370" height="160"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Factoring_di" bpmnElement="Lane_Factoring" isHorizontal="true">
        <dc:Bounds x="150" y="1000" width="4370" height="160"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Sistemas_di" bpmnElement="Lane_Sistemas" isHorizontal="true">
        <dc:Bounds x="150" y="1160" width="4370" height="660"/>
      </bpmndi:BPMNShape>

      <!-- POOL 2 · Cliente -->
      <bpmndi:BPMNShape id="Participant_CL_di" bpmnElement="Participant_CL" isHorizontal="true">
        <dc:Bounds x="120" y="1860" width="4400" height="180"/>
      </bpmndi:BPMNShape>
      <!-- POOL 3 · Factoring -->
      <bpmndi:BPMNShape id="Participant_FX_di" bpmnElement="Participant_FX" isHorizontal="true">
        <dc:Bounds x="120" y="2080" width="4400" height="160"/>
      </bpmndi:BPMNShape>

      <!-- ===== Roberto (y=240..400, mid 320) ===== -->
      <bpmndi:BPMNShape id="Start_WM_di" bpmnElement="Start_WM">
        <dc:Bounds x="220" y="302" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="180" y="345" width="120" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_CrearEDP_di" bpmnElement="Task_CrearEDP">
        <dc:Bounds x="320" y="280" width="220" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_EmiteFactura_di" bpmnElement="Task_EmiteFactura">
        <dc:Bounds x="600" y="280" width="220" height="80"/>
      </bpmndi:BPMNShape>

      <!-- ===== Supervisora de Facturacion (y=400..620, mid 500) ===== -->
      <bpmndi:BPMNShape id="Recv_RechazoSII_di" bpmnElement="Recv_RechazoSII">
        <dc:Bounds x="880" y="460" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_ProcesaRechazoSII_di" bpmnElement="Task_ProcesaRechazoSII">
        <dc:Bounds x="880" y="560" width="240" height="50"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_ConfirmaAprobado_di" bpmnElement="Task_ConfirmaAprobado">
        <dc:Bounds x="1180" y="460" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_Aprobado_di" bpmnElement="GW_Aprobado" isMarkerVisible="true">
        <dc:Bounds x="1480" y="478" width="44" height="44"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1450" y="525" width="120" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_IteraEDP_di" bpmnElement="Task_IteraEDP">
        <dc:Bounds x="1430" y="560" width="220" height="50"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Estado_PorVencer_di" bpmnElement="Estado_PorVencer">
        <dc:Bounds x="1600" y="482" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1560" y="425" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_PagaAntesVence_di" bpmnElement="GW_PagaAntesVence" isMarkerVisible="true">
        <dc:Bounds x="1700" y="478" width="44" height="44"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1670" y="525" width="120" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Concilia_di" bpmnElement="Task_Concilia">
        <dc:Bounds x="1820" y="460" width="220" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Pagada_di" bpmnElement="End_Pagada">
        <dc:Bounds x="2080" y="482" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2040" y="525" width="140" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="SubProc_ConciliacionMensual_di" bpmnElement="SubProc_ConciliacionMensual" isExpanded="false">
        <dc:Bounds x="2200" y="460" width="320" height="80"/>
      </bpmndi:BPMNShape>

      <!-- ===== Analistas (y=620..840, mid 720) ===== -->
      <bpmndi:BPMNShape id="Estado_Vencida_di" bpmnElement="Estado_Vencida">
        <dc:Bounds x="1722" y="702" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1680" y="745" width="160" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_GestionVencida_di" bpmnElement="Task_GestionVencida">
        <dc:Bounds x="1820" y="680" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_90dias_di" bpmnElement="GW_90dias" isMarkerVisible="true">
        <dc:Bounds x="2120" y="698" width="44" height="44"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2080" y="745" width="140" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Recordatorio_di" bpmnElement="Task_Recordatorio">
        <dc:Bounds x="2080" y="780" width="220" height="50"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Estado_Vencida90_di" bpmnElement="Estado_Vencida90">
        <dc:Bounds x="2240" y="702" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2200" y="660" width="160" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_Factoring_di" bpmnElement="GW_Factoring" isMarkerVisible="true">
        <dc:Bounds x="3300" y="698" width="44" height="44"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3270" y="745" width="120" height="20"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Castigo_di" bpmnElement="End_Castigo">
        <dc:Bounds x="3420" y="702" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3380" y="745" width="160" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="SubProc_AtencionesColgadas_di" bpmnElement="SubProc_AtencionesColgadas" isExpanded="false">
        <dc:Bounds x="3580" y="680" width="320" height="80"/>
      </bpmndi:BPMNShape>

      <!-- ===== Coustasse (y=60..240, mid 140) ===== -->
      <bpmndi:BPMNShape id="Task_EscalaCFO_di" bpmnElement="Task_EscalaCFO">
        <dc:Bounds x="2400" y="100" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_Bloquear_di" bpmnElement="GW_Bloquear" isMarkerVisible="true">
        <dc:Bounds x="2980" y="118" width="44" height="44"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2940" y="80" width="160" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_SuspendeAtenciones_di" bpmnElement="Task_SuspendeAtenciones">
        <dc:Bounds x="3080" y="100" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Bloqueo_di" bpmnElement="End_Bloqueo">
        <dc:Bounds x="3360" y="122" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3320" y="165" width="140" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- ===== Comercial (y=840..1000, mid 920) ===== -->
      <bpmndi:BPMNShape id="Task_NegociaCaso_di" bpmnElement="Task_NegociaCaso">
        <dc:Bounds x="2680" y="880" width="260" height="80"/>
      </bpmndi:BPMNShape>

      <!-- ===== Factoring (y=1000..1160, mid 1080) ===== -->
      <bpmndi:BPMNShape id="Send_CederFactura_di" bpmnElement="Send_CederFactura">
        <dc:Bounds x="3500" y="1040" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Factoring_di" bpmnElement="End_Factoring">
        <dc:Bounds x="3780" y="1062" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3740" y="1105" width="140" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- ===== Sistemas (y=1160..1820) ===== -->
      <bpmndi:BPMNShape id="SubProc_Valorizacion_di" bpmnElement="SubProc_Valorizacion" isExpanded="false">
        <dc:Bounds x="320" y="1200" width="380" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="SubProc_PMO_di" bpmnElement="SubProc_PMO" isExpanded="false">
        <dc:Bounds x="760" y="1200" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_HubFact_di" bpmnElement="DS_HubFact">
        <dc:Bounds x="320" y="1340" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="270" y="1395" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_HubCob_di" bpmnElement="DS_HubCob">
        <dc:Bounds x="540" y="1340" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="490" y="1395" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_Defontana_di" bpmnElement="DS_Defontana">
        <dc:Bounds x="760" y="1340" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="710" y="1395" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_Excel_di" bpmnElement="DS_Excel">
        <dc:Bounds x="980" y="1340" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="930" y="1395" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_FlowMed_di" bpmnElement="DS_FlowMed">
        <dc:Bounds x="1200" y="1340" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1150" y="1395" width="160" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DS_PythonScript_di" bpmnElement="DS_PythonScript">
        <dc:Bounds x="1420" y="1340" width="50" height="50"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1360" y="1395" width="180" height="40"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- ===== Cliente (y=1860..2040, mid 1950) ===== -->
      <bpmndi:BPMNShape id="Start_CL_di" bpmnElement="Start_CL">
        <dc:Bounds x="700" y="1932" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="680" y="1975" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Recv_Factura_CL_di" bpmnElement="Recv_Factura_CL">
        <dc:Bounds x="800" y="1910" width="200" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="GW_RechazaCL_di" bpmnElement="GW_RechazaCL" isMarkerVisible="true">
        <dc:Bounds x="1060" y="1928" width="44" height="44"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1020" y="1975" width="140" height="30"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_RechazaSII_CL_di" bpmnElement="Task_RechazaSII_CL">
        <dc:Bounds x="1180" y="1910" width="220" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_CL_Rech_di" bpmnElement="End_CL_Rech">
        <dc:Bounds x="1440" y="1932" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1410" y="1975" width="100" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Recv_Negocia_CL_di" bpmnElement="Recv_Negocia_CL">
        <dc:Bounds x="2680" y="1910" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Paga_CL_di" bpmnElement="Task_Paga_CL">
        <dc:Bounds x="2980" y="1910" width="220" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_CL_di" bpmnElement="End_CL">
        <dc:Bounds x="3240" y="1932" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3220" y="1975" width="100" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- ===== Factoring (y=2080..2240, mid 2160) ===== -->
      <bpmndi:BPMNShape id="Start_FX_di" bpmnElement="Start_FX">
        <dc:Bounds x="3500" y="2142" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3460" y="2185" width="120" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Recv_CesionFX_di" bpmnElement="Recv_CesionFX">
        <dc:Bounds x="3580" y="2120" width="200" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_PagaCesion_FX_di" bpmnElement="Task_PagaCesion_FX">
        <dc:Bounds x="3820" y="2120" width="240" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_FX_di" bpmnElement="End_FX">
        <dc:Bounds x="4100" y="2142" width="36" height="36"/>
        <bpmndi:BPMNLabel><dc:Bounds x="4070" y="2185" width="120" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>

      <!-- ===== Annotations (y=2280..2480 below pools) ===== -->
      <bpmndi:BPMNShape id="Ann_RN1_di" bpmnElement="Ann_RN1">
        <dc:Bounds x="200" y="2280" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN222_di" bpmnElement="Ann_RN222">
        <dc:Bounds x="560" y="2280" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN3_di" bpmnElement="Ann_RN3">
        <dc:Bounds x="920" y="2280" width="360" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN7_di" bpmnElement="Ann_RN7">
        <dc:Bounds x="1320" y="2280" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN10_di" bpmnElement="Ann_RN10">
        <dc:Bounds x="1680" y="2280" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_RN15_di" bpmnElement="Ann_RN15">
        <dc:Bounds x="2040" y="2280" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_Mineras_di" bpmnElement="Ann_Mineras">
        <dc:Bounds x="2420" y="2280" width="340" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_Volumen_di" bpmnElement="Ann_Volumen">
        <dc:Bounds x="2800" y="2280" width="380" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_HubSpot_di" bpmnElement="Ann_HubSpot">
        <dc:Bounds x="3220" y="2280" width="380" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_Eduardo_di" bpmnElement="Ann_Eduardo">
        <dc:Bounds x="3640" y="2280" width="320" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Ann_Identidad_di" bpmnElement="Ann_Identidad">
        <dc:Bounds x="4000" y="2280" width="380" height="80"/>
      </bpmndi:BPMNShape>

      <!-- ============ EDGES WORKMED ============ -->
      <bpmndi:BPMNEdge id="F1_di" bpmnElement="F1">
        <di:waypoint x="256" y="320"/><di:waypoint x="320" y="320"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F2_di" bpmnElement="F2">
        <di:waypoint x="540" y="320"/><di:waypoint x="600" y="320"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F3_di" bpmnElement="F3">
        <di:waypoint x="820" y="320"/><di:waypoint x="850" y="320"/>
        <di:waypoint x="850" y="500"/><di:waypoint x="880" y="500"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Rechazo_di" bpmnElement="F_Rechazo">
        <di:waypoint x="1000" y="540"/><di:waypoint x="1000" y="560"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1010" y="545" width="160" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_RechazoOut_di" bpmnElement="F_RechazoOut">
        <di:waypoint x="1120" y="585"/><di:waypoint x="1300" y="585"/>
        <di:waypoint x="1300" y="540"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_NoRech_top_di" bpmnElement="MF_FacturaSII_unused_top">
        <di:waypoint x="1120" y="500"/><di:waypoint x="1180" y="500"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F4_di" bpmnElement="F4">
        <di:waypoint x="1420" y="500"/><di:waypoint x="1480" y="500"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_NoAprob_di" bpmnElement="F_NoAprob">
        <di:waypoint x="1502" y="522"/><di:waypoint x="1502" y="560"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1505" y="528" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Itera_di" bpmnElement="F_Itera">
        <di:waypoint x="1430" y="585"/><di:waypoint x="1300" y="585"/>
        <di:waypoint x="1300" y="540"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_SiAprob_di" bpmnElement="F_SiAprob">
        <di:waypoint x="1524" y="500"/><di:waypoint x="1600" y="500"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1530" y="478" width="60" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F5_di" bpmnElement="F5">
        <di:waypoint x="1636" y="500"/><di:waypoint x="1700" y="500"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_PagaPlazo_di" bpmnElement="F_PagaPlazo">
        <di:waypoint x="1744" y="500"/><di:waypoint x="1820" y="500"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1750" y="478" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Pagada_di" bpmnElement="F_Pagada">
        <di:waypoint x="2040" y="500"/><di:waypoint x="2080" y="500"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_NoPaga_di" bpmnElement="F_NoPaga">
        <di:waypoint x="1722" y="522"/><di:waypoint x="1722" y="720"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1730" y="600" width="80" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F6_di" bpmnElement="F6">
        <di:waypoint x="1758" y="720"/><di:waypoint x="1820" y="720"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F7_di" bpmnElement="F7">
        <di:waypoint x="2060" y="720"/><di:waypoint x="2120" y="720"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Menos90_di" bpmnElement="F_Menos90">
        <di:waypoint x="2142" y="742"/><di:waypoint x="2142" y="780"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2150" y="748" width="60" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Recordatorio_di" bpmnElement="F_Recordatorio">
        <di:waypoint x="2080" y="805"/><di:waypoint x="1940" y="805"/>
        <di:waypoint x="1940" y="760"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Mas90_di" bpmnElement="F_Mas90">
        <di:waypoint x="2164" y="720"/><di:waypoint x="2240" y="720"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2170" y="698" width="60" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F8_di" bpmnElement="F8">
        <di:waypoint x="2258" y="702"/><di:waypoint x="2258" y="660"/>
        <di:waypoint x="2540" y="660"/><di:waypoint x="2540" y="220"/>
        <di:waypoint x="2460" y="220"/><di:waypoint x="2460" y="180"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F9_di" bpmnElement="F9">
        <di:waypoint x="2520" y="180"/><di:waypoint x="2520" y="920"/>
        <di:waypoint x="2680" y="920"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F10_di" bpmnElement="F10">
        <di:waypoint x="2940" y="920"/><di:waypoint x="3002" y="920"/>
        <di:waypoint x="3002" y="162"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_BloqSi_di" bpmnElement="F_BloqSi">
        <di:waypoint x="3024" y="140"/><di:waypoint x="3080" y="140"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3030" y="118" width="100" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Bloqueo_di" bpmnElement="F_Bloqueo">
        <di:waypoint x="3320" y="140"/><di:waypoint x="3360" y="140"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_BloqNo_di" bpmnElement="F_BloqNo">
        <di:waypoint x="3002" y="162"/><di:waypoint x="3002" y="720"/>
        <di:waypoint x="3300" y="720"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3050" y="700" width="160" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_FxSi_di" bpmnElement="F_FxSi">
        <di:waypoint x="3322" y="742"/><di:waypoint x="3322" y="1080"/>
        <di:waypoint x="3500" y="1080"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3330" y="900" width="60" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_Cedida_di" bpmnElement="F_Cedida">
        <di:waypoint x="3740" y="1080"/><di:waypoint x="3780" y="1080"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_FxNo_di" bpmnElement="F_FxNo">
        <di:waypoint x="3344" y="720"/><di:waypoint x="3420" y="720"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3350" y="698" width="120" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F_PagadaPostFx_di" bpmnElement="F_PagadaPostFx">
        <di:waypoint x="3740" y="1080"/><di:waypoint x="3740" y="1140"/>
        <di:waypoint x="3960" y="1140"/><di:waypoint x="3960" y="640"/>
        <di:waypoint x="2098" y="640"/><di:waypoint x="2098" y="518"/>
      </bpmndi:BPMNEdge>

      <!-- ===== Edges Cliente ===== -->
      <bpmndi:BPMNEdge id="FC1_di" bpmnElement="FC1">
        <di:waypoint x="736" y="1950"/><di:waypoint x="800" y="1950"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FC2_di" bpmnElement="FC2">
        <di:waypoint x="1000" y="1950"/><di:waypoint x="1060" y="1950"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FC_Rech_di" bpmnElement="FC_Rech">
        <di:waypoint x="1104" y="1950"/><di:waypoint x="1180" y="1950"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1110" y="1928" width="60" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FC_RechEnd_di" bpmnElement="FC_RechEnd">
        <di:waypoint x="1400" y="1950"/><di:waypoint x="1440" y="1950"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FC_NoRech_di" bpmnElement="FC_NoRech">
        <di:waypoint x="1082" y="1972"/><di:waypoint x="1082" y="2010"/>
        <di:waypoint x="2800" y="2010"/><di:waypoint x="2800" y="1990"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1100" y="1990" width="60" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FC3_di" bpmnElement="FC3">
        <di:waypoint x="2920" y="1950"/><di:waypoint x="2980" y="1950"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FC4_di" bpmnElement="FC4">
        <di:waypoint x="3200" y="1950"/><di:waypoint x="3240" y="1950"/>
      </bpmndi:BPMNEdge>

      <!-- ===== Edges Factoring ===== -->
      <bpmndi:BPMNEdge id="FX1_di" bpmnElement="FX1">
        <di:waypoint x="3536" y="2160"/><di:waypoint x="3580" y="2160"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FX2_di" bpmnElement="FX2">
        <di:waypoint x="3780" y="2160"/><di:waypoint x="3820" y="2160"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="FX3_di" bpmnElement="FX3">
        <di:waypoint x="4060" y="2160"/><di:waypoint x="4100" y="2160"/>
      </bpmndi:BPMNEdge>

      <!-- ===== Message flows entre pools ===== -->
      <bpmndi:BPMNEdge id="MF_FacturaSII_di" bpmnElement="MF_FacturaSII">
        <di:waypoint x="710" y="360"/><di:waypoint x="710" y="1910"/>
        <di:waypoint x="900" y="1910"/>
        <bpmndi:BPMNLabel><dc:Bounds x="720" y="1100" width="160" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_RechazoSII_di" bpmnElement="MF_RechazoSII">
        <di:waypoint x="1290" y="1910"/><di:waypoint x="1140" y="1910"/>
        <di:waypoint x="1140" y="1300"/><di:waypoint x="1130" y="1300"/>
        <di:waypoint x="1130" y="500"/><di:waypoint x="1120" y="500"/>
        <bpmndi:BPMNLabel><dc:Bounds x="1145" y="1100" width="180" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_NegociaComercial_di" bpmnElement="MF_NegociaComercial">
        <di:waypoint x="2810" y="960"/><di:waypoint x="2810" y="1910"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2820" y="1500" width="180" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_PagoCliente_di" bpmnElement="MF_PagoCliente">
        <di:waypoint x="3090" y="1910"/><di:waypoint x="3090" y="1620"/>
        <di:waypoint x="2070" y="1620"/><di:waypoint x="2070" y="640"/>
        <di:waypoint x="1900" y="640"/><di:waypoint x="1900" y="540"/>
        <bpmndi:BPMNLabel><dc:Bounds x="2080" y="1600" width="160" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_CesionFactoring_di" bpmnElement="MF_CesionFactoring">
        <di:waypoint x="3620" y="1120"/><di:waypoint x="3620" y="2120"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3630" y="1600" width="180" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_PagoFactoring_di" bpmnElement="MF_PagoFactoring">
        <di:waypoint x="3940" y="2120"/><di:waypoint x="3940" y="1640"/>
        <di:waypoint x="2065" y="1640"/><di:waypoint x="2065" y="650"/>
        <di:waypoint x="1960" y="650"/><di:waypoint x="1960" y="540"/>
        <bpmndi:BPMNLabel><dc:Bounds x="3950" y="1620" width="180" height="14"/></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>

      <!-- ===== Data associations ===== -->
      <bpmndi:BPMNEdge id="DOA_HubCob_Crea_di" bpmnElement="DOA_HubCob_Crea">
        <di:waypoint x="430" y="360"/><di:waypoint x="565" y="1340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Def_Factura_di" bpmnElement="DOA_Def_Factura">
        <di:waypoint x="710" y="360"/><di:waypoint x="785" y="1340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Def_NC_di" bpmnElement="DOA_Def_NC">
        <di:waypoint x="1000" y="610"/><di:waypoint x="785" y="1340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Hub_Aprobado_di" bpmnElement="DOA_Hub_Aprobado">
        <di:waypoint x="1300" y="540"/><di:waypoint x="565" y="1340"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DIA_Concilia_Hub_di" bpmnElement="DIA_Concilia_Hub">
        <di:waypoint x="565" y="1340"/><di:waypoint x="1930" y="540"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DIA_Concilia_Def_di" bpmnElement="DIA_Concilia_Def">
        <di:waypoint x="785" y="1340"/><di:waypoint x="1930" y="540"/>
      </bpmndi:BPMNEdge>

      <!-- ===== Annotation associations ===== -->
      <bpmndi:BPMNEdge id="Assoc_RN1_di" bpmnElement="Assoc_RN1">
        <di:waypoint x="360" y="2280"/><di:waypoint x="360" y="2200"/>
        <di:waypoint x="1660" y="2200"/><di:waypoint x="1660" y="540"/>
        <di:waypoint x="1618" y="540"/><di:waypoint x="1618" y="518"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN222_di" bpmnElement="Assoc_RN222">
        <di:waypoint x="720" y="2280"/><di:waypoint x="720" y="2210"/>
        <di:waypoint x="1160" y="2210"/><di:waypoint x="1160" y="500"/>
        <di:waypoint x="1120" y="500"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN3_di" bpmnElement="Assoc_RN3">
        <di:waypoint x="1100" y="2280"/><di:waypoint x="1100" y="2220"/>
        <di:waypoint x="2950" y="2220"/><di:waypoint x="2950" y="940"/>
        <di:waypoint x="2940" y="940"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN7_di" bpmnElement="Assoc_RN7">
        <di:waypoint x="1480" y="2280"/><di:waypoint x="1480" y="2230"/>
        <di:waypoint x="2360" y="2230"/><di:waypoint x="2360" y="540"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN10_di" bpmnElement="Assoc_RN10">
        <di:waypoint x="1840" y="2280"/><di:waypoint x="1840" y="2240"/>
        <di:waypoint x="1940" y="2240"/><di:waypoint x="1940" y="760"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_RN15_di" bpmnElement="Assoc_RN15">
        <di:waypoint x="2210" y="2280"/><di:waypoint x="2210" y="2250"/>
        <di:waypoint x="510" y="2250"/><di:waypoint x="510" y="1280"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_Mineras_di" bpmnElement="Assoc_Mineras">
        <di:waypoint x="2590" y="2280"/><di:waypoint x="2590" y="2255"/>
        <di:waypoint x="2330" y="2255"/><di:waypoint x="2330" y="770"/>
        <di:waypoint x="2270" y="770"/><di:waypoint x="2270" y="738"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_Volumen_di" bpmnElement="Assoc_Volumen">
        <di:waypoint x="2990" y="2280"/><di:waypoint x="2990" y="2260"/>
        <di:waypoint x="280" y="2260"/><di:waypoint x="280" y="360"/>
        <di:waypoint x="320" y="360"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_HubSpot_di" bpmnElement="Assoc_HubSpot">
        <di:waypoint x="3410" y="2280"/><di:waypoint x="3410" y="1500"/>
        <di:waypoint x="565" y="1500"/><di:waypoint x="565" y="1390"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_Eduardo_di" bpmnElement="Assoc_Eduardo">
        <di:waypoint x="3800" y="2280"/><di:waypoint x="3800" y="1520"/>
        <di:waypoint x="1225" y="1520"/><di:waypoint x="1225" y="1390"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Assoc_Identidad_di" bpmnElement="Assoc_Identidad">
        <di:waypoint x="4190" y="2280"/><di:waypoint x="4190" y="1540"/>
        <di:waypoint x="1445" y="1540"/><di:waypoint x="1445" y="1390"/>
      </bpmndi:BPMNEdge>

    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</bpmn:definitions>
