Any Java example for querying namespace and workflows using temporal?

Use-case: List all workflows in namespace, Filter workflows based on some attributes

I went through the docs and the links that are provided in documentation are pointing to Cadence code base for Java, implementation classes mentioned in this link are not available within temporal.

Also, I looked at this example to find more info but it has a TODO saying it’s broken so can someone please point me in the right direction. TIA :slight_smile:

Use the gRPC Temporal service client:

WorkflowServiceStubs service = WorkflowServiceStubs.newInstance(options);

ListOpenWorkflowExecutionsResponse listResponse =
      service.blockingStub().listOpenWorkflowExecutions(listRequest);