logger->info(self::P.'a message is received', ['signaturedId' => $message->signatureId]); $signature = $this->entityWorkflowStepSignatureRepository->find($message->signatureId); if (null === $signature) { throw new \RuntimeException('no signature found'); } $storedObject = $this->entityWorkflowManager->getAssociatedStoredObject($signature->getStep()->getEntityWorkflow()); if (null === $storedObject) { throw new \RuntimeException('no stored object found'); } $this->entityManager->wrapInTransaction(function () use ($storedObject, $message, $signature) { $this->storedObjectManager->write($storedObject, $message->content); $this->signatureStepStateChanger->markSignatureAsSigned($signature, $message->signatureZoneIndex); }); $this->entityManager->clear(); } }