/** * @param WorkflowRunCreated $event */ protected function onWorkflowRunCreated(WorkflowRunCreated $event) { $this->workflowRunId = $event->workflowRunId(); $this->workflowId = $event->workflowId(); }
public function testWorkflowId() { $uuid = Uuid::uuid4(); $event = new WorkflowRunCreated(array('workflowRunId' => $uuid->toString(), 'workflowId' => '1234')); $this->assertEquals('1234', $event->workflowId()->toString()); }