I’m using the ScanWorkflowExecutionsResponse to get all workflow executions currently running.
I’m trying to get the value of one of the custom search attribute I added. So far this is where I’m stuck
ScanWorkflowExecutionsRequest scanWorkflowExecutionsRequest = ScanWorkflowExecutionsRequest.newBuilder().setNamespace(NAMESPACE).setQuery(query).build()
ScanWorkflowExecutionsResponse scan = service.blockingStub().scanWorkflowExecutions(scanWorkflowExecutionsRequest)
for (WorkflowExecutionInfo exec : scan.executionsList) {
SearchAttributes searchAttributes = exec.getSearchAttributes()
}
From the SearchAttributes, I’m not sure how to get the value of my custom attribute.
Is there like a getField('customAttr')
Thanks!