I’m invoking listArchivedWorkflowExecutions against a wfid.
The results of this method includes both archived and unachieved workflow.
Questions
- Is this an expected behaviour?
- Will this behaviour remain the same even in future?
private List<WorkflowExecutionInfo> getArchivedWFExecutions(String query) {
return this.workflowServiceStub.listArchivedWorkflowExecutions(this.getListArchivedWorkflowExecutionsRequest(query)).getExecutionsList();
}
private ListArchivedWorkflowExecutionsRequest getListArchivedWorkflowExecutionsRequest(String query) {
return ListArchivedWorkflowExecutionsRequest.newBuilder().setQuery(query).setNamespace(this.temporalServerConfiguration.getWorkflow().getWorkflowNamespace()).build();
}
private String constructQuery(String workflowId) {
return String.format("WorkflowId ='%s'", workflowId);
}