public function logProcessStartedByMessage(ProcessId $processId, $startMessageName)
    {
        $data = [
            'start_message' => $startMessageName,
        ];

        $entry = $this->loadProcessEntryIfExists($processId);

        if (is_null($entry)) {
            $data['status'] = self::STATUS_RUNNING;

            $this->insertNewEntry($processId, $data);
        } else {
            $this->updateEntry($processId, $data);
        }
    }