/**
  * @param WorkflowWasCreated $event
  */
 protected function whenWorkflowWasCreated(WorkflowWasCreated $event)
 {
     $this->processingNodeName = $event->processingNodeName();
     $this->workflowId = $event->workflowId();
     $this->name = $event->workflowName();
 }
 /**
  * @param WorkflowWasCreated $event
  */
 public function onWorkflowWasCreated(WorkflowWasCreated $event)
 {
     $this->connection->insert(Tables::WORKFLOW, ['id' => $event->workflowId()->toString(), 'name' => $event->workflowName(), 'node_name' => $event->processingNodeName()->toString()]);
 }