/**
  * @param StartMessageWasAssignedToWorkflow $event
  */
 protected function whenStartMessageWasAssignedToWorkflow(StartMessageWasAssignedToWorkflow $event)
 {
     $this->startMessage = $event->startMessage();
 }
 /**
  * @param StartMessageWasAssignedToWorkflow $event
  */
 public function onStartMessageWasAssignedToWorkflow(StartMessageWasAssignedToWorkflow $event)
 {
     $this->connection->update(Tables::WORKFLOW, ['start_message' => $event->startMessage()->messageName()], ['id' => $event->workflowId()->toString()]);
 }