<?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:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" xmlns:color="http://www.omg.org/spec/BPMN/non-normative/color/1.0" id="Defs_CnpjSocio" targetNamespace="http://minamt.sedec.mt.gov.br/bpmn">
  <bpmn:collaboration id="Collab_CnpjSocio">
    <bpmn:participant id="Pool_CnpjSocio" name="CNPJ: sócio tenta assinar" processRef="Process_CnpjSocio" />
  </bpmn:collaboration>
  <bpmn:process id="Process_CnpjSocio" isExecutable="false">
    <bpmn:laneSet id="LaneSet_CnpjSocio">
      <bpmn:lane id="Lane_CnpjSocio_q" name="Sócio-administrador">
        <bpmn:flowNodeRef>i</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>a1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>a2</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_CnpjSocio_s" name="MINA MT">
        <bpmn:flowNodeRef>d1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>x</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>d2</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>a4</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_CnpjSocio_g" name="gov.br / ITI">
        <bpmn:flowNodeRef>a3</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>y</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_CnpjSocio_p" name="Conta do CNPJ">
        <bpmn:flowNodeRef>f</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="i" name="Sócio quer assinar pela empresa">
      <bpmn:outgoing>Flow_CnpjSocio_1</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:userTask id="a1" name="Cadastra o próprio CPF e entra">
      <bpmn:incoming>Flow_CnpjSocio_1</bpmn:incoming>
      <bpmn:outgoing>Flow_CnpjSocio_2</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="d1" name="Há representante do titular já gravado com esse CPF?">
      <bpmn:incoming>Flow_CnpjSocio_2</bpmn:incoming>
      <bpmn:outgoing>Flow_CnpjSocio_3</bpmn:outgoing>
      <bpmn:outgoing>Flow_CnpjSocio_4</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:endEvent id="x" name="Não vê a empresa: ninguém assina">
      <bpmn:incoming>Flow_CnpjSocio_3</bpmn:incoming>
      <bpmn:errorEventDefinition id="x_err" />
    </bpmn:endEvent>
    <bpmn:userTask id="a2" name="Vê a empresa e o termo pendente">
      <bpmn:incoming>Flow_CnpjSocio_4</bpmn:incoming>
      <bpmn:outgoing>Flow_CnpjSocio_5</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:task id="a3" name="Autoriza no gov.br">
      <bpmn:incoming>Flow_CnpjSocio_5</bpmn:incoming>
      <bpmn:outgoing>Flow_CnpjSocio_6</bpmn:outgoing>
    </bpmn:task>
    <bpmn:exclusiveGateway id="d2" name="CPF do gov.br é o do sócio da sessão?">
      <bpmn:incoming>Flow_CnpjSocio_6</bpmn:incoming>
      <bpmn:outgoing>Flow_CnpjSocio_7</bpmn:outgoing>
      <bpmn:outgoing>Flow_CnpjSocio_8</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:endEvent id="y" name="Recusada">
      <bpmn:incoming>Flow_CnpjSocio_8</bpmn:incoming>
      <bpmn:errorEventDefinition id="y_err" />
    </bpmn:endEvent>
    <bpmn:serviceTask id="a4" name="Marca o termo da empresa ASSINADO">
      <bpmn:incoming>Flow_CnpjSocio_7</bpmn:incoming>
      <bpmn:outgoing>Flow_CnpjSocio_9</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="f" name="A conta do CNPJ passa a emitir a certidão">
      <bpmn:incoming>Flow_CnpjSocio_9</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_CnpjSocio_1" sourceRef="i" targetRef="a1" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_2" sourceRef="a1" targetRef="d1" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_3" name="Não" sourceRef="d1" targetRef="x" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_4" name="Sim" sourceRef="d1" targetRef="a2" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_5" sourceRef="a2" targetRef="a3" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_6" sourceRef="a3" targetRef="d2" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_7" name="Sim" sourceRef="d2" targetRef="a4" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_8" name="Não" sourceRef="d2" targetRef="y" />
    <bpmn:sequenceFlow id="Flow_CnpjSocio_9" sourceRef="a4" targetRef="f" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="Diagram_CnpjSocio">
    <bpmndi:BPMNPlane id="Plane_CnpjSocio" bpmnElement="Collab_CnpjSocio">
      <bpmndi:BPMNShape id="Pool_CnpjSocio_di" bpmnElement="Pool_CnpjSocio" isHorizontal="true">
        <dc:Bounds x="20" y="20" width="1705" height="600" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_CnpjSocio_q_di" bpmnElement="Lane_CnpjSocio_q" isHorizontal="true">
        <dc:Bounds x="50" y="20" width="1675" height="150" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_CnpjSocio_s_di" bpmnElement="Lane_CnpjSocio_s" isHorizontal="true">
        <dc:Bounds x="50" y="170" width="1675" height="150" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_CnpjSocio_g_di" bpmnElement="Lane_CnpjSocio_g" isHorizontal="true">
        <dc:Bounds x="50" y="320" width="1675" height="150" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_CnpjSocio_p_di" bpmnElement="Lane_CnpjSocio_p" isHorizontal="true">
        <dc:Bounds x="50" y="470" width="1675" height="150" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="i_di" bpmnElement="i">
        <dc:Bounds x="147" y="77" width="36" height="36" />
        <bpmndi:BPMNLabel><dc:Bounds x="105" y="117" width="120" height="40" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a1_di" bpmnElement="a1">
        <dc:Bounds x="280" y="50" width="150" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="d1_di" bpmnElement="d1" isMarkerVisible="true" bioc:stroke="#b71c1c" bioc:fill="#ffcdd2" color:border-color="#b71c1c" color:background-color="#ffcdd2">
        <dc:Bounds x="520" y="220" width="50" height="50" />
        <bpmndi:BPMNLabel><dc:Bounds x="485" y="274" width="120" height="40" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="x_di" bpmnElement="x">
        <dc:Bounds x="717" y="227" width="36" height="36" />
        <bpmndi:BPMNLabel><dc:Bounds x="675" y="267" width="120" height="40" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a2_di" bpmnElement="a2">
        <dc:Bounds x="660" y="50" width="150" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a3_di" bpmnElement="a3">
        <dc:Bounds x="850" y="350" width="150" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="d2_di" bpmnElement="d2" isMarkerVisible="true" bioc:stroke="#1b5e20" bioc:fill="#c8e6c9" color:border-color="#1b5e20" color:background-color="#c8e6c9">
        <dc:Bounds x="1090" y="220" width="50" height="50" />
        <bpmndi:BPMNLabel><dc:Bounds x="1055" y="176" width="120" height="40" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="y_di" bpmnElement="y">
        <dc:Bounds x="1287" y="377" width="36" height="36" />
        <bpmndi:BPMNLabel><dc:Bounds x="1245" y="417" width="120" height="40" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a4_di" bpmnElement="a4">
        <dc:Bounds x="1230" y="200" width="150" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="f_di" bpmnElement="f">
        <dc:Bounds x="1477" y="527" width="36" height="36" />
        <bpmndi:BPMNLabel><dc:Bounds x="1435" y="567" width="120" height="40" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_1_di" bpmnElement="Flow_CnpjSocio_1">
        <di:waypoint x="183" y="95" />
        <di:waypoint x="280" y="95" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_2_di" bpmnElement="Flow_CnpjSocio_2">
        <di:waypoint x="430" y="95" />
        <di:waypoint x="475" y="95" />
        <di:waypoint x="475" y="245" />
        <di:waypoint x="520" y="245" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_3_di" bpmnElement="Flow_CnpjSocio_3">
        <di:waypoint x="570" y="245" />
        <di:waypoint x="717" y="245" />
        <bpmndi:BPMNLabel><dc:Bounds x="578" y="225" width="90" height="18" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_4_di" bpmnElement="Flow_CnpjSocio_4">
        <di:waypoint x="545" y="220" />
        <di:waypoint x="545" y="95" />
        <di:waypoint x="660" y="95" />
        <bpmndi:BPMNLabel><dc:Bounds x="553" y="75" width="90" height="18" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_5_di" bpmnElement="Flow_CnpjSocio_5">
        <di:waypoint x="810" y="95" />
        <di:waypoint x="830" y="95" />
        <di:waypoint x="830" y="395" />
        <di:waypoint x="850" y="395" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_6_di" bpmnElement="Flow_CnpjSocio_6">
        <di:waypoint x="1000" y="395" />
        <di:waypoint x="1045" y="395" />
        <di:waypoint x="1045" y="245" />
        <di:waypoint x="1090" y="245" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_7_di" bpmnElement="Flow_CnpjSocio_7">
        <di:waypoint x="1140" y="245" />
        <di:waypoint x="1230" y="245" />
        <bpmndi:BPMNLabel><dc:Bounds x="1148" y="225" width="90" height="18" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_8_di" bpmnElement="Flow_CnpjSocio_8">
        <di:waypoint x="1115" y="270" />
        <di:waypoint x="1115" y="395" />
        <di:waypoint x="1287" y="395" />
        <bpmndi:BPMNLabel><dc:Bounds x="1123" y="375" width="90" height="18" /></bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_CnpjSocio_9_di" bpmnElement="Flow_CnpjSocio_9">
        <di:waypoint x="1380" y="245" />
        <di:waypoint x="1428.5" y="245" />
        <di:waypoint x="1428.5" y="545" />
        <di:waypoint x="1477" y="545" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
