<?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="Definizioni" targetNamespace="https://vettamilano.com/diagnosi" exporter="Vetta diagnosi" exporterVersion="1">
  <bpmn:collaboration id="Collaborazione" name="Muratura Demo Milano: come funziona oggi">
    <bpmn:participant id="P_cliente" name="Cliente" processRef="Proc_cliente" />
    <bpmn:participant id="P_impresa" name="Muratura Demo Milano" processRef="Proc_impresa" />
    <bpmn:messageFlow id="m_0" name="chiamata" sourceRef="n_c_chiama" targetRef="n_t_cantiere" />
    <bpmn:messageFlow id="m_1" name="domande" sourceRef="n_t_richiama" targetRef="n_c_dati" />
    <bpmn:messageFlow id="m_2" name="foto" sourceRef="n_c_dati" targetRef="n_t_richiama" />
    <bpmn:messageFlow id="m_3" name="preventivo" sourceRef="n_t_sera" targetRef="n_c_riceve" />
    <bpmn:messageFlow id="m_4" name="accetta" sourceRef="n_c_accetta" targetRef="n_q_esegue" />
  </bpmn:collaboration>
  <bpmn:process id="Proc_cliente" isExecutable="false">
    <bpmn:startEvent id="n_c_inizio" name="Ha bisogno di: rifare un muretto e un intonaco">
      <bpmn:outgoing>f_0</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="n_c_chiama" name="Chiama o scrive su WhatsApp">
      <bpmn:incoming>f_0</bpmn:incoming>
      <bpmn:outgoing>f_7</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="n_c_dati" name="Manda foto e informazioni">
      <bpmn:incoming>f_7</bpmn:incoming>
      <bpmn:outgoing>f_8</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="n_c_riceve" name="Riceve il preventivo">
      <bpmn:incoming>f_8</bpmn:incoming>
      <bpmn:outgoing>f_9</bpmn:outgoing>
    </bpmn:task>
    <bpmn:exclusiveGateway id="n_c_decide" name="Accetta?">
      <bpmn:incoming>f_9</bpmn:incoming>
      <bpmn:outgoing>f_10</bpmn:outgoing>
      <bpmn:outgoing>f_11</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:endEvent id="n_c_no" name="Sceglie un'altra impresa">
      <bpmn:incoming>f_11</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:task id="n_c_accetta" name="Comunica che accetta">
      <bpmn:incoming>f_10</bpmn:incoming>
      <bpmn:outgoing>f_12</bpmn:outgoing>
    </bpmn:task>
    <bpmn:endEvent id="n_c_si" name="Lavoro affidato">
      <bpmn:incoming>f_12</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="f_0" sourceRef="n_c_inizio" targetRef="n_c_chiama" />
    <bpmn:sequenceFlow id="f_7" sourceRef="n_c_chiama" targetRef="n_c_dati" />
    <bpmn:sequenceFlow id="f_8" sourceRef="n_c_dati" targetRef="n_c_riceve" />
    <bpmn:sequenceFlow id="f_9" sourceRef="n_c_riceve" targetRef="n_c_decide" />
    <bpmn:sequenceFlow id="f_10" name="sì" sourceRef="n_c_decide" targetRef="n_c_accetta" />
    <bpmn:sequenceFlow id="f_11" name="no" sourceRef="n_c_decide" targetRef="n_c_no" />
    <bpmn:sequenceFlow id="f_12" sourceRef="n_c_accetta" targetRef="n_c_si" />
  </bpmn:process>
  <bpmn:process id="Proc_impresa" isExecutable="false">
    <bpmn:laneSet id="Corsie">
      <bpmn:lane id="lane_titolare" name="Titolare">
        <bpmn:flowNodeRef>n_t_cantiere</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_t_richiama</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_t_decide</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_t_no</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_t_sopr</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_t_sera</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_t_attende</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_t_fine</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="lane_squadra" name="Squadra in cantiere">
        <bpmn:flowNodeRef>n_q_esegue</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>n_q_carte</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:task id="n_t_cantiere" name="Il telefono squilla mentre lavora">
      <bpmn:outgoing>f_1</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="n_t_richiama" name="Richiama e chiede i dati">
      <bpmn:incoming>f_1</bpmn:incoming>
      <bpmn:outgoing>f_2</bpmn:outgoing>
    </bpmn:task>
    <bpmn:exclusiveGateway id="n_t_decide" name="Va a vedere?">
      <bpmn:incoming>f_2</bpmn:incoming>
      <bpmn:outgoing>f_3</bpmn:outgoing>
      <bpmn:outgoing>f_4</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:endEvent id="n_t_no" name="Dice che non è un lavoro suo">
      <bpmn:incoming>f_4</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:task id="n_t_sopr" name="Sopralluogo">
      <bpmn:incoming>f_3</bpmn:incoming>
      <bpmn:outgoing>f_5</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="n_t_sera" name="Scrive il preventivo la sera">
      <bpmn:incoming>f_5</bpmn:incoming>
      <bpmn:outgoing>f_6</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="n_t_attende" name="Aspetta la risposta">
      <bpmn:incoming>f_6</bpmn:incoming>
      <bpmn:outgoing>f_13</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="n_q_esegue" name="Esegue il lavoro">
      <bpmn:incoming>f_13</bpmn:incoming>
      <bpmn:outgoing>f_14</bpmn:outgoing>
    </bpmn:task>
    <bpmn:task id="n_q_carte" name="Scontrini e DDT nel telefono e in furgone">
      <bpmn:incoming>f_14</bpmn:incoming>
      <bpmn:outgoing>f_15</bpmn:outgoing>
    </bpmn:task>
    <bpmn:endEvent id="n_t_fine" name="Lavoro finito, nessuna recensione chiesta">
      <bpmn:incoming>f_15</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="f_1" sourceRef="n_t_cantiere" targetRef="n_t_richiama" />
    <bpmn:sequenceFlow id="f_2" sourceRef="n_t_richiama" targetRef="n_t_decide" />
    <bpmn:sequenceFlow id="f_3" name="sì" sourceRef="n_t_decide" targetRef="n_t_sopr" />
    <bpmn:sequenceFlow id="f_4" name="no" sourceRef="n_t_decide" targetRef="n_t_no" />
    <bpmn:sequenceFlow id="f_5" sourceRef="n_t_sopr" targetRef="n_t_sera" />
    <bpmn:sequenceFlow id="f_6" sourceRef="n_t_sera" targetRef="n_t_attende" />
    <bpmn:sequenceFlow id="f_13" sourceRef="n_t_attende" targetRef="n_q_esegue" />
    <bpmn:sequenceFlow id="f_14" sourceRef="n_q_esegue" targetRef="n_q_carte" />
    <bpmn:sequenceFlow id="f_15" sourceRef="n_q_carte" targetRef="n_t_fine" />
    <bpmn:textAnnotation id="a_t_cantiere"><bpmn:text>Problema (dichiarato): Risponde la sera: intanto il cliente sente altre imprese</bpmn:text></bpmn:textAnnotation>
    <bpmn:association id="as_t_cantiere" sourceRef="n_t_cantiere" targetRef="a_t_cantiere" />
    <bpmn:textAnnotation id="a_t_richiama"><bpmn:text>Problema (dichiarato): I dati arrivano a pezzi tra audio e foto</bpmn:text></bpmn:textAnnotation>
    <bpmn:association id="as_t_richiama" sourceRef="n_t_richiama" targetRef="a_t_richiama" />
    <bpmn:textAnnotation id="a_t_sera"><bpmn:text>Problema (dichiarato): Tre o quattro giorni per mandarlo</bpmn:text></bpmn:textAnnotation>
    <bpmn:association id="as_t_sera" sourceRef="n_t_sera" targetRef="a_t_sera" />
    <bpmn:textAnnotation id="a_t_attende"><bpmn:text>Problema (dichiarato): Se il cliente tace nessuno lo richiama</bpmn:text></bpmn:textAnnotation>
    <bpmn:association id="as_t_attende" sourceRef="n_t_attende" targetRef="a_t_attende" />
    <bpmn:textAnnotation id="a_q_carte"><bpmn:text>Problema (dichiarato): A fine mese si cercano i documenti per giorni</bpmn:text></bpmn:textAnnotation>
    <bpmn:association id="as_q_carte" sourceRef="n_q_carte" targetRef="a_q_carte" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="Diagramma">
    <bpmndi:BPMNPlane id="Piano" bpmnElement="Collaborazione">
      <bpmndi:BPMNShape id="P_cliente_di" bpmnElement="P_cliente" isHorizontal="true"><dc:Bounds x="0" y="0" width="1930" height="160" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="P_impresa_di" bpmnElement="P_impresa" isHorizontal="true"><dc:Bounds x="0" y="190" width="1930" height="320" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="lane_titolare_di" bpmnElement="lane_titolare" isHorizontal="true"><dc:Bounds x="35" y="190" width="1895" height="160" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="lane_squadra_di" bpmnElement="lane_squadra" isHorizontal="true"><dc:Bounds x="35" y="350" width="1895" height="160" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_inizio_di" bpmnElement="n_c_inizio"><dc:Bounds x="122" y="28" width="36" height="36" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_chiama_di" bpmnElement="n_c_chiama"><dc:Bounds x="221" y="14" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_cantiere_di" bpmnElement="n_t_cantiere" bioc:stroke="#b42318" bioc:fill="#fdecea" color:background-color="#fdecea" color:border-color="#b42318"><dc:Bounds x="361" y="204" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_richiama_di" bpmnElement="n_t_richiama" bioc:stroke="#b42318" bioc:fill="#fdecea" color:background-color="#fdecea" color:border-color="#b42318"><dc:Bounds x="501" y="204" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_dati_di" bpmnElement="n_c_dati"><dc:Bounds x="641" y="14" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_decide_di" bpmnElement="n_t_decide" isMarkerVisible="true"><dc:Bounds x="675" y="211" width="50" height="50" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_no_di" bpmnElement="n_t_no"><dc:Bounds x="822" y="292" width="36" height="36" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_sopr_di" bpmnElement="n_t_sopr"><dc:Bounds x="781" y="204" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_sera_di" bpmnElement="n_t_sera" bioc:stroke="#b42318" bioc:fill="#fdecea" color:background-color="#fdecea" color:border-color="#b42318"><dc:Bounds x="921" y="204" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_riceve_di" bpmnElement="n_c_riceve"><dc:Bounds x="1061" y="14" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_attende_di" bpmnElement="n_t_attende" bioc:stroke="#b42318" bioc:fill="#fdecea" color:background-color="#fdecea" color:border-color="#b42318"><dc:Bounds x="1061" y="204" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_decide_di" bpmnElement="n_c_decide" isMarkerVisible="true"><dc:Bounds x="1235" y="21" width="50" height="50" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_no_di" bpmnElement="n_c_no"><dc:Bounds x="1382" y="102" width="36" height="36" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_accetta_di" bpmnElement="n_c_accetta"><dc:Bounds x="1341" y="14" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_c_si_di" bpmnElement="n_c_si"><dc:Bounds x="1522" y="28" width="36" height="36" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_q_esegue_di" bpmnElement="n_q_esegue"><dc:Bounds x="1481" y="364" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_q_carte_di" bpmnElement="n_q_carte" bioc:stroke="#b42318" bioc:fill="#fdecea" color:background-color="#fdecea" color:border-color="#b42318"><dc:Bounds x="1621" y="364" width="118" height="64" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="n_t_fine_di" bpmnElement="n_t_fine"><dc:Bounds x="1802" y="218" width="36" height="36" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a_t_cantiere_di" bpmnElement="a_t_cantiere"><dc:Bounds x="350" y="278" width="140" height="40" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a_t_richiama_di" bpmnElement="a_t_richiama"><dc:Bounds x="490" y="278" width="140" height="40" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a_t_sera_di" bpmnElement="a_t_sera"><dc:Bounds x="910" y="278" width="140" height="40" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a_t_attende_di" bpmnElement="a_t_attende"><dc:Bounds x="1050" y="278" width="140" height="40" /></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="a_q_carte_di" bpmnElement="a_q_carte"><dc:Bounds x="1610" y="438" width="140" height="40" /></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="f_0_di" bpmnElement="f_0"><di:waypoint x="158" y="46" /><di:waypoint x="221" y="46" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_1_di" bpmnElement="f_1"><di:waypoint x="479" y="236" /><di:waypoint x="501" y="236" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_2_di" bpmnElement="f_2"><di:waypoint x="619" y="236" /><di:waypoint x="675" y="236" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_3_di" bpmnElement="f_3"><di:waypoint x="725" y="236" /><di:waypoint x="781" y="236" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_4_di" bpmnElement="f_4"><di:waypoint x="725" y="236" /><di:waypoint x="773" y="236" /><di:waypoint x="773" y="310" /><di:waypoint x="822" y="310" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_5_di" bpmnElement="f_5"><di:waypoint x="899" y="236" /><di:waypoint x="921" y="236" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_6_di" bpmnElement="f_6"><di:waypoint x="1039" y="236" /><di:waypoint x="1061" y="236" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_7_di" bpmnElement="f_7"><di:waypoint x="339" y="46" /><di:waypoint x="641" y="46" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_8_di" bpmnElement="f_8"><di:waypoint x="759" y="46" /><di:waypoint x="1061" y="46" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_9_di" bpmnElement="f_9"><di:waypoint x="1179" y="46" /><di:waypoint x="1235" y="46" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_10_di" bpmnElement="f_10"><di:waypoint x="1285" y="46" /><di:waypoint x="1341" y="46" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_11_di" bpmnElement="f_11"><di:waypoint x="1285" y="46" /><di:waypoint x="1333" y="46" /><di:waypoint x="1333" y="120" /><di:waypoint x="1382" y="120" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_12_di" bpmnElement="f_12"><di:waypoint x="1459" y="46" /><di:waypoint x="1522" y="46" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_13_di" bpmnElement="f_13"><di:waypoint x="1179" y="236" /><di:waypoint x="1330" y="236" /><di:waypoint x="1330" y="396" /><di:waypoint x="1481" y="396" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_14_di" bpmnElement="f_14"><di:waypoint x="1599" y="396" /><di:waypoint x="1621" y="396" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f_15_di" bpmnElement="f_15"><di:waypoint x="1739" y="396" /><di:waypoint x="1770" y="396" /><di:waypoint x="1770" y="236" /><di:waypoint x="1802" y="236" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="m_0_di" bpmnElement="m_0"><di:waypoint x="280" y="78" /><di:waypoint x="280" y="141" /><di:waypoint x="420" y="141" /><di:waypoint x="420" y="204" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="m_1_di" bpmnElement="m_1"><di:waypoint x="560" y="204" /><di:waypoint x="560" y="141" /><di:waypoint x="700" y="141" /><di:waypoint x="700" y="78" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="m_2_di" bpmnElement="m_2"><di:waypoint x="700" y="78" /><di:waypoint x="700" y="141" /><di:waypoint x="560" y="141" /><di:waypoint x="560" y="204" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="m_3_di" bpmnElement="m_3"><di:waypoint x="980" y="204" /><di:waypoint x="980" y="141" /><di:waypoint x="1120" y="141" /><di:waypoint x="1120" y="78" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="m_4_di" bpmnElement="m_4"><di:waypoint x="1400" y="78" /><di:waypoint x="1400" y="221" /><di:waypoint x="1540" y="221" /><di:waypoint x="1540" y="364" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="as_t_cantiere_di" bpmnElement="as_t_cantiere"><di:waypoint x="420" y="268" /><di:waypoint x="420" y="278" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="as_t_richiama_di" bpmnElement="as_t_richiama"><di:waypoint x="560" y="268" /><di:waypoint x="560" y="278" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="as_t_sera_di" bpmnElement="as_t_sera"><di:waypoint x="980" y="268" /><di:waypoint x="980" y="278" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="as_t_attende_di" bpmnElement="as_t_attende"><di:waypoint x="1120" y="268" /><di:waypoint x="1120" y="278" /></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="as_q_carte_di" bpmnElement="as_q_carte"><di:waypoint x="1680" y="428" /><di:waypoint x="1680" y="438" /></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
