Commit 0205a3f1 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

la méthode configureProcess a un paramètre suplémentaire pour permettre de...

la méthode configureProcess a un paramètre suplémentaire pour permettre de découpler les Process/ProcessFlow
parent 02e3203b
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for module/Oscar/src/Oscar/Service/ContractDocumentService.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -244,8 +244,9 @@ class ContractDocumentService implements UseOscarConfigurationService, UseEntity

        try {
            // Création du processus
            // TODO Découplage Process / SignatureFlow
            $process = $this->getProcessService()->createUnconfiguredProcess($fileName, $signatureFlow->getId());
            $this->getProcessService()->configureProcess($process, $signatureFlowDatas);
            $this->getProcessService()->configureProcess($process, $signatureFlowDatas, $signatureFlow);
            $document->setProcess($process);
            $this->getEntityManager()->flush();
            $this->getProcessService()->trigger($process, true);