Skip to content

Instantly share code, notes, and snippets.

@seregazhuk
Created March 26, 2022 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seregazhuk/abb96e98157eed3f390016ac9db63ecb to your computer and use it in GitHub Desktop.
Save seregazhuk/abb96e98157eed3f390016ac9db63ecb to your computer and use it in GitHub Desktop.
Example of using DescribeWorkflowExecutionRequest
<?php
$workflowClient = WorkflowClient::create(ServiceClient::create($host));
$workflow = $workflowClient->newUntypedWorkflowStub(MyWorkflow::class);
$workflowClient->start($workflow);
$describeWorkflowExecutionRequest = new DescribeWorkflowExecutionRequest();
$describeWorkflowExecutionRequest->setNamespace('default');
$describeWorkflowExecutionRequest->setExecution($workflow->getExecution()->toProtoWorkflowExecution());
$result = $workflowClient->getServiceClient()->DescribeWorkflowExecution($describeWorkflowExecutionRequest);
dump($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment