Created
December 4, 2025 04:00
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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