Skip to content

Instantly share code, notes, and snippets.

@DCCoder90
Created December 4, 2025 04:00
Show Gist options
  • Select an option

  • Save DCCoder90/16dab1c451e508dc4bf594231cf7b75f to your computer and use it in GitHub Desktop.

Select an option

Save DCCoder90/16dab1c451e508dc4bf594231cf7b75f to your computer and use it in GitHub Desktop.
A Java snippet example that shows how to check a Temporal workflow's execution
public WorkflowExecutionStatus checkStatus(String workflowId) {
DescribeWorkflowExecutionRequest request = DescribeWorkflowExecutionRequest.newBuilder()
.setNamespace(client.getOptions().getNamespace())
.setExecution(WorkflowExecution.newBuilder().setWorkflowId(workflowId).build())
.build();
DescribeWorkflowExecutionResponse response =
service.blockingStub().describeWorkflowExecution(request);
return response.getWorkflowExecutionInfo().getStatus();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment