I am looking for documentation, java doc and usage around workflow search - describe/list/query workflows/workflowExecutions.
for example queryWorkflow, QueryWorkflowRequest…
It would be very useful, if you can add a section in here https://docs.temporal.io/docs/java-sdk-overview with pointers to further docs like java doc and usage.
I am testing locally against the docker container (docker-compose-mysql.yml)
It gives the response INVALID_ARGUMENT: Operation not support. Please use on ElasticSearch
I am using mysql without elastic search.
I would like to know which api supports getting workflows given a workflowType and a namespace, in this case(no elastic search).
Please confirm
listOpenWorkflowExecutions - returns all which has status Running
listClosedWorkflowExecutions - returns all which has status != Running
io.temporal.api.enums.v1.WorkflowExecutionStatus is my reference
WORKFLOW_EXECUTION_STATUS_UNSPECIFIED(0),
WORKFLOW_EXECUTION_STATUS_RUNNING(1),
WORKFLOW_EXECUTION_STATUS_COMPLETED(2),
WORKFLOW_EXECUTION_STATUS_FAILED(3),
WORKFLOW_EXECUTION_STATUS_CANCELED(4),
WORKFLOW_EXECUTION_STATUS_TERMINATED(5),
WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW(6),
WORKFLOW_EXECUTION_STATUS_TIMED_OUT(7),
UNRECOGNIZED(-1);
For listClosedWorkflowExecutions, could we further filter by status ?
The standard way to call the query method on the stub created through the Client. There is no API difference when querying closed and open workflows. See HelloQuery sample as a reference.