<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  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_1"
                  targetNamespace="http://landrier/process">

  <bpmn:process id="Process_Landrier_Niveau1" name="Processus Landrier - Niveau 1" isExecutable="false">

    <bpmn:startEvent id="StartEvent_Salon" name="Rencontre prospect au salon" />

    <bpmn:task id="Task_OuvrirDossier" name="Ouvrir dossier prospect" />

    <bpmn:exclusiveGateway id="Gateway_ClientExistant" name="Client existant ?" />

    <bpmn:task id="Task_AssignerAvantVenteHabituel" name="Attribuer collaborateur habituel" />
    <bpmn:task id="Task_AssignerCollaborateurDisponible" name="Attribuer collaborateur disponible" />

    <bpmn:task id="Task_RencontreClient" name="Rencontre client (2h max)" />
    <bpmn:exclusiveGateway id="Gateway_ProjetPossible" name="Projet possible ?" />

    <bpmn:endEvent id="EndEvent_ProjetImpossible" name="Projet abandonné" />

    <bpmn:parallelGateway id="Gateway_PreparationProjet" />

    <bpmn:task id="Task_EvaluerCharge" name="Évaluer charge de travail" />
    <bpmn:task id="Task_ConstituerEquipe" name="Constituer équipe projet" />
    <bpmn:task id="Task_PreparerContrat" name="Préparer contrat" />
    <bpmn:task id="Task_FixerPrix" name="Fixer prix du projet" />

    <bpmn:parallelGateway id="Gateway_FinPreparation" />

    <bpmn:task id="Task_EnvoyerDevis" name="Envoyer devis au client" />

    <bpmn:exclusiveGateway id="Gateway_DevisAccepte" name="Devis accepté ?" />

    <bpmn:endEvent id="EndEvent_DevisRefuse" name="Projet abandonné (devis refusé ou sans réponse)" />

    <bpmn:task id="Task_PreparerBacklog" name="Préparer backlog produit" />
    <bpmn:task id="Task_Sprint1" name="Sprint 1 (2 semaines)" />
    <bpmn:exclusiveGateway id="Gateway_Sprint1OK" name="Sprint 1 validé ?" />

    <bpmn:task id="Task_RefaireSprint1" name="Refaire Sprint 1" />
    <bpmn:task id="Task_Sprint2" name="Sprint 2" />

    <bpmn:task id="Task_RecetteClient" name="Recette client" />
    <bpmn:exclusiveGateway id="Gateway_RecetteOK" name="Recette validée ?" />

    <bpmn:task id="Task_Corrections" name="Corrections" />

    <bpmn:endEvent id="EndEvent_ProjetCloture" name="Projet clôturé" />

    <!-- Flows -->
    <bpmn:sequenceFlow id="Flow_1" sourceRef="StartEvent_Salon" targetRef="Task_OuvrirDossier" />
    <bpmn:sequenceFlow id="Flow_2" sourceRef="Task_OuvrirDossier" targetRef="Gateway_ClientExistant" />

    <bpmn:sequenceFlow id="Flow_3" sourceRef="Gateway_ClientExistant" targetRef="Task_AssignerAvantVenteHabituel" />
    <bpmn:sequenceFlow id="Flow_4" sourceRef="Gateway_ClientExistant" targetRef="Task_AssignerCollaborateurDisponible" />

    <bpmn:sequenceFlow id="Flow_5" sourceRef="Task_AssignerAvantVenteHabituel" targetRef="Task_RencontreClient" />
    <bpmn:sequenceFlow id="Flow_6" sourceRef="Task_AssignerCollaborateurDisponible" targetRef="Task_RencontreClient" />

    <bpmn:sequenceFlow id="Flow_7" sourceRef="Task_RencontreClient" targetRef="Gateway_ProjetPossible" />

    <bpmn:sequenceFlow id="Flow_8" sourceRef="Gateway_ProjetPossible" targetRef="EndEvent_ProjetImpossible" />
    <bpmn:sequenceFlow id="Flow_9" sourceRef="Gateway_ProjetPossible" targetRef="Gateway_PreparationProjet" />

    <bpmn:sequenceFlow id="Flow_10" sourceRef="Gateway_PreparationProjet" targetRef="Task_EvaluerCharge" />
    <bpmn:sequenceFlow id="Flow_11" sourceRef="Gateway_PreparationProjet" targetRef="Task_ConstituerEquipe" />
    <bpmn:sequenceFlow id="Flow_12" sourceRef="Gateway_PreparationProjet" targetRef="Task_PreparerContrat" />
    <bpmn:sequenceFlow id="Flow_13" sourceRef="Gateway_PreparationProjet" targetRef="Task_FixerPrix" />

    <bpmn:sequenceFlow id="Flow_14" sourceRef="Task_EvaluerCharge" targetRef="Gateway_FinPreparation" />
    <bpmn:sequenceFlow id="Flow_15" sourceRef="Task_ConstituerEquipe" targetRef="Gateway_FinPreparation" />
    <bpmn:sequenceFlow id="Flow_16" sourceRef="Task_PreparerContrat" targetRef="Gateway_FinPreparation" />
    <bpmn:sequenceFlow id="Flow_17" sourceRef="Task_FixerPrix" targetRef="Gateway_FinPreparation" />

    <bpmn:sequenceFlow id="Flow_18" sourceRef="Gateway_FinPreparation" targetRef="Task_EnvoyerDevis" />
    <bpmn:sequenceFlow id="Flow_19" sourceRef="Task_EnvoyerDevis" targetRef="Gateway_DevisAccepte" />

    <bpmn:sequenceFlow id="Flow_20" sourceRef="Gateway_DevisAccepte" targetRef="EndEvent_DevisRefuse" />
    <bpmn:sequenceFlow id="Flow_21" sourceRef="Gateway_DevisAccepte" targetRef="Task_PreparerBacklog" />

    <bpmn:sequenceFlow id="Flow_22" sourceRef="Task_PreparerBacklog" targetRef="Task_Sprint1" />
    <bpmn:sequenceFlow id="Flow_23" sourceRef="Task_Sprint1" targetRef="Gateway_Sprint1OK" />

    <bpmn:sequenceFlow id="Flow_24" sourceRef="Gateway_Sprint1OK" targetRef="Task_RefaireSprint1" />
    <bpmn:sequenceFlow id="Flow_25" sourceRef="Task_RefaireSprint1" targetRef="Task_Sprint1" />
    <bpmn:sequenceFlow id="Flow_26" sourceRef="Gateway_Sprint1OK" targetRef="Task_Sprint2" />

    <bpmn:sequenceFlow id="Flow_27" sourceRef="Task_Sprint2" targetRef="Task_RecetteClient" />
    <bpmn:sequenceFlow id="Flow_28" sourceRef="Task_RecetteClient" targetRef="Gateway_RecetteOK" />

    <bpmn:sequenceFlow id="Flow_29" sourceRef="Gateway_RecetteOK" targetRef="Task_Corrections" />
    <bpmn:sequenceFlow id="Flow_30" sourceRef="Task_Corrections" targetRef="Task_RecetteClient" />
    <bpmn:sequenceFlow id="Flow_31" sourceRef="Gateway_RecetteOK" targetRef="EndEvent_ProjetCloture" />

  </bpmn:process>
</bpmn:definitions>
