withStartToCloseTimeout(5) ); $e = new WorkflowExecution(); $e->setWorkflowId('workflow id'); $e->setRunId('run id'); /** @var WorkflowExecution $e2 */ $e2 = yield $simple->updateRunID($e); assert($e2->getWorkflowId() === $e->getWorkflowId()); assert($e2->getRunId() === 'updated'); return $e2; } }