<?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"
                  id="Definitions_6"
                  targetNamespace="http://forven.com.br/bpmn">

  <bpmn:collaboration id="Collaboration_6">
    <bpmn:participant id="Participant_6" name="Financeiro e Conciliação Bancária" processRef="Process_6" />
  </bpmn:collaboration>

  <bpmn:process id="Process_6" isExecutable="false">

    <bpmn:laneSet id="LaneSet_6">
      <bpmn:lane id="Lane_Origem" name="Origem do título">
        <bpmn:flowNodeRef>StartEvent_Fat</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_FaturamentoVenda</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>StartEvent_Compras</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_ComprasNFe</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>StartEvent_Manual</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_LancamentoManual</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Financeiro" name="Financeiro">
        <bpmn:flowNodeRef>Task_ContaReceber</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_ContaPagar</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_BoletoGerado</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_BaixaManual</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_RemessaBanco</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_RetornoBancario</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Banco" name="Banco">
        <bpmn:flowNodeRef>StartEvent_Banco</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_ExtratoBancario</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Conciliacao" name="Conciliação">
        <bpmn:flowNodeRef>Task_ConciliaTitulo</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>EndEvent_1</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>

    <bpmn:startEvent id="StartEvent_Fat" name="Início">
      <bpmn:outgoing>Flow_S1</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_FaturamentoVenda" name="Faturamento: venda/O.S.&#10;autorizada">
      <bpmn:incoming>Flow_S1</bpmn:incoming>
      <bpmn:outgoing>Flow_1</bpmn:outgoing>
    </bpmn:task>

    <bpmn:startEvent id="StartEvent_Compras" name="Início">
      <bpmn:outgoing>Flow_S2</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_ComprasNFe" name="Compras: NF-e com itens&#10;vinculados">
      <bpmn:incoming>Flow_S2</bpmn:incoming>
      <bpmn:outgoing>Flow_2</bpmn:outgoing>
    </bpmn:task>

    <bpmn:startEvent id="StartEvent_Manual" name="Início">
      <bpmn:outgoing>Flow_S3</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_LancamentoManual" name="Lançamento manual">
      <bpmn:incoming>Flow_S3</bpmn:incoming>
      <bpmn:outgoing>Flow_3</bpmn:outgoing>
      <bpmn:outgoing>Flow_4</bpmn:outgoing>
    </bpmn:task>

    <bpmn:task id="Task_ContaReceber" name="Conta a Receber&#10;(Pendente)">
      <bpmn:incoming>Flow_1</bpmn:incoming>
      <bpmn:incoming>Flow_3</bpmn:incoming>
      <bpmn:outgoing>Flow_5</bpmn:outgoing>
      <bpmn:outgoing>Flow_6</bpmn:outgoing>
    </bpmn:task>

    <bpmn:task id="Task_ContaPagar" name="Conta a Pagar&#10;(Pendente)">
      <bpmn:incoming>Flow_2</bpmn:incoming>
      <bpmn:incoming>Flow_4</bpmn:incoming>
      <bpmn:outgoing>Flow_7</bpmn:outgoing>
    </bpmn:task>

    <bpmn:task id="Task_BoletoGerado" name="Boleto gerado">
      <bpmn:incoming>Flow_5</bpmn:incoming>
      <bpmn:outgoing>Flow_8</bpmn:outgoing>
    </bpmn:task>

    <bpmn:task id="Task_BaixaManual" name="Baixa manual&#10;(Data, forma de pagamento)">
      <bpmn:incoming>Flow_6</bpmn:incoming>
      <bpmn:incoming>Flow_7</bpmn:incoming>
      <bpmn:outgoing>Flow_11</bpmn:outgoing>
    </bpmn:task>

    <bpmn:task id="Task_RemessaBanco" name="Remessa ao banco">
      <bpmn:incoming>Flow_8</bpmn:incoming>
      <bpmn:outgoing>Flow_9</bpmn:outgoing>
    </bpmn:task>

    <bpmn:task id="Task_RetornoBancario" name="Retorno bancário&#10;(pago / baixado / tarifa)">
      <bpmn:incoming>Flow_9</bpmn:incoming>
      <bpmn:outgoing>Flow_10</bpmn:outgoing>
    </bpmn:task>

    <bpmn:startEvent id="StartEvent_Banco" name="Início">
      <bpmn:outgoing>Flow_S4</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Task_ExtratoBancario" name="Extrato bancário&#10;(Open Finance / OFX)">
      <bpmn:incoming>Flow_S4</bpmn:incoming>
      <bpmn:outgoing>Flow_12</bpmn:outgoing>
    </bpmn:task>

    <bpmn:task id="Task_ConciliaTitulo" name="Concilia título × transação">
      <bpmn:incoming>Flow_10</bpmn:incoming>
      <bpmn:incoming>Flow_11</bpmn:incoming>
      <bpmn:incoming>Flow_12</bpmn:incoming>
      <bpmn:outgoing>Flow_13</bpmn:outgoing>
    </bpmn:task>

    <bpmn:endEvent id="EndEvent_1" name="Fim">
      <bpmn:incoming>Flow_13</bpmn:incoming>
    </bpmn:endEvent>

    <bpmn:sequenceFlow id="Flow_S1" sourceRef="StartEvent_Fat" targetRef="Task_FaturamentoVenda" />
    <bpmn:sequenceFlow id="Flow_S2" sourceRef="StartEvent_Compras" targetRef="Task_ComprasNFe" />
    <bpmn:sequenceFlow id="Flow_S3" sourceRef="StartEvent_Manual" targetRef="Task_LancamentoManual" />
    <bpmn:sequenceFlow id="Flow_S4" sourceRef="StartEvent_Banco" targetRef="Task_ExtratoBancario" />
    <bpmn:sequenceFlow id="Flow_1" name="gera título" sourceRef="Task_FaturamentoVenda" targetRef="Task_ContaReceber" />
    <bpmn:sequenceFlow id="Flow_2" name="gera título" sourceRef="Task_ComprasNFe" targetRef="Task_ContaPagar" />
    <bpmn:sequenceFlow id="Flow_3" name="Lançar Financeiro" sourceRef="Task_LancamentoManual" targetRef="Task_ContaReceber" />
    <bpmn:sequenceFlow id="Flow_4" name="Lançar Financeiro" sourceRef="Task_LancamentoManual" targetRef="Task_ContaPagar" />
    <bpmn:sequenceFlow id="Flow_5" sourceRef="Task_ContaReceber" targetRef="Task_BoletoGerado" />
    <bpmn:sequenceFlow id="Flow_6" sourceRef="Task_ContaReceber" targetRef="Task_BaixaManual" />
    <bpmn:sequenceFlow id="Flow_7" sourceRef="Task_ContaPagar" targetRef="Task_BaixaManual" />
    <bpmn:sequenceFlow id="Flow_8" sourceRef="Task_BoletoGerado" targetRef="Task_RemessaBanco" />
    <bpmn:sequenceFlow id="Flow_9" sourceRef="Task_RemessaBanco" targetRef="Task_RetornoBancario" />
    <bpmn:sequenceFlow id="Flow_10" sourceRef="Task_RetornoBancario" targetRef="Task_ConciliaTitulo" />
    <bpmn:sequenceFlow id="Flow_11" sourceRef="Task_BaixaManual" targetRef="Task_ConciliaTitulo" />
    <bpmn:sequenceFlow id="Flow_12" sourceRef="Task_ExtratoBancario" targetRef="Task_ConciliaTitulo" />
    <bpmn:sequenceFlow id="Flow_13" sourceRef="Task_ConciliaTitulo" targetRef="EndEvent_1" />

  </bpmn:process>

  <bpmndi:BPMNDiagram id="BPMNDiagram_6">
    <bpmndi:BPMNPlane id="BPMNPlane_6" bpmnElement="Collaboration_6">

      <bpmndi:BPMNShape id="Participant_6_di" bpmnElement="Participant_6" isHorizontal="true">
        <dc:Bounds x="0" y="0" width="920" height="1150" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape id="Lane_Origem_di" bpmnElement="Lane_Origem" isHorizontal="true">
        <dc:Bounds x="40" y="0" width="880" height="260" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Financeiro_di" bpmnElement="Lane_Financeiro" isHorizontal="true">
        <dc:Bounds x="40" y="260" width="880" height="480" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Banco_di" bpmnElement="Lane_Banco" isHorizontal="true">
        <dc:Bounds x="40" y="740" width="880" height="200" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Conciliacao_di" bpmnElement="Lane_Conciliacao" isHorizontal="true">
        <dc:Bounds x="40" y="940" width="880" height="210" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape id="StartEvent_Fat_di" bpmnElement="StartEvent_Fat">
        <dc:Bounds x="162" y="20" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_FaturamentoVenda_di" bpmnElement="Task_FaturamentoVenda">
        <dc:Bounds x="70" y="90" width="220" height="70" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape id="StartEvent_Compras_di" bpmnElement="StartEvent_Compras">
        <dc:Bounds x="722" y="20" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_ComprasNFe_di" bpmnElement="Task_ComprasNFe">
        <dc:Bounds x="630" y="90" width="220" height="70" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape id="StartEvent_Manual_di" bpmnElement="StartEvent_Manual">
        <dc:Bounds x="442" y="20" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_LancamentoManual_di" bpmnElement="Task_LancamentoManual">
        <dc:Bounds x="350" y="90" width="220" height="70" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape id="Task_ContaReceber_di" bpmnElement="Task_ContaReceber">
        <dc:Bounds x="70" y="300" width="220" height="70" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_ContaPagar_di" bpmnElement="Task_ContaPagar">
        <dc:Bounds x="630" y="300" width="220" height="70" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_BoletoGerado_di" bpmnElement="Task_BoletoGerado">
        <dc:Bounds x="70" y="440" width="220" height="70" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_BaixaManual_di" bpmnElement="Task_BaixaManual">
        <dc:Bounds x="350" y="440" width="220" height="70" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_RemessaBanco_di" bpmnElement="Task_RemessaBanco">
        <dc:Bounds x="70" y="540" width="220" height="70" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_RetornoBancario_di" bpmnElement="Task_RetornoBancario">
        <dc:Bounds x="70" y="640" width="220" height="70" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape id="StartEvent_Banco_di" bpmnElement="StartEvent_Banco">
        <dc:Bounds x="722" y="760" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_ExtratoBancario_di" bpmnElement="Task_ExtratoBancario">
        <dc:Bounds x="630" y="810" width="220" height="70" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNShape id="Task_ConciliaTitulo_di" bpmnElement="Task_ConciliaTitulo">
        <dc:Bounds x="350" y="980" width="220" height="70" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_1_di" bpmnElement="EndEvent_1">
        <dc:Bounds x="442" y="1080" width="36" height="36" />
      </bpmndi:BPMNShape>

      <bpmndi:BPMNEdge id="Flow_S1_di" bpmnElement="Flow_S1">
        <di:waypoint x="180" y="56" />
        <di:waypoint x="180" y="90" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_S2_di" bpmnElement="Flow_S2">
        <di:waypoint x="740" y="56" />
        <di:waypoint x="740" y="90" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_S3_di" bpmnElement="Flow_S3">
        <di:waypoint x="460" y="56" />
        <di:waypoint x="460" y="90" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_S4_di" bpmnElement="Flow_S4">
        <di:waypoint x="740" y="796" />
        <di:waypoint x="740" y="810" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
        <di:waypoint x="180" y="160" />
        <di:waypoint x="180" y="300" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="186" y="225" width="60" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2">
        <di:waypoint x="740" y="160" />
        <di:waypoint x="740" y="300" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="746" y="225" width="60" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_3_di" bpmnElement="Flow_3">
        <di:waypoint x="460" y="160" />
        <di:waypoint x="460" y="230" />
        <di:waypoint x="180" y="230" />
        <di:waypoint x="180" y="300" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="275" y="215" width="90" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_4_di" bpmnElement="Flow_4">
        <di:waypoint x="460" y="160" />
        <di:waypoint x="460" y="230" />
        <di:waypoint x="740" y="230" />
        <di:waypoint x="740" y="300" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="555" y="215" width="90" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_5_di" bpmnElement="Flow_5">
        <di:waypoint x="180" y="370" />
        <di:waypoint x="180" y="440" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_6_di" bpmnElement="Flow_6">
        <di:waypoint x="180" y="370" />
        <di:waypoint x="180" y="405" />
        <di:waypoint x="400" y="405" />
        <di:waypoint x="400" y="440" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_7_di" bpmnElement="Flow_7">
        <di:waypoint x="740" y="370" />
        <di:waypoint x="740" y="405" />
        <di:waypoint x="520" y="405" />
        <di:waypoint x="520" y="440" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_8_di" bpmnElement="Flow_8">
        <di:waypoint x="180" y="510" />
        <di:waypoint x="180" y="540" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_9_di" bpmnElement="Flow_9">
        <di:waypoint x="180" y="610" />
        <di:waypoint x="180" y="640" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10_di" bpmnElement="Flow_10">
        <di:waypoint x="180" y="710" />
        <di:waypoint x="180" y="960" />
        <di:waypoint x="400" y="960" />
        <di:waypoint x="400" y="980" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_11_di" bpmnElement="Flow_11">
        <di:waypoint x="460" y="510" />
        <di:waypoint x="460" y="980" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_12_di" bpmnElement="Flow_12">
        <di:waypoint x="740" y="880" />
        <di:waypoint x="740" y="960" />
        <di:waypoint x="520" y="960" />
        <di:waypoint x="520" y="980" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_13_di" bpmnElement="Flow_13">
        <di:waypoint x="460" y="1050" />
        <di:waypoint x="460" y="1080" />
      </bpmndi:BPMNEdge>

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

</bpmn:definitions>
