This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Replies: 1 comment
-
Conductor server does not push status chages to client, rather the server provides an interface with a couple of different implementations for publishing/acting upon workflow termination/completion events. You could implement your own listener to route these events to your clients. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! Is there any way to register some sort of event handler for workflow status changes?
I have a Java microservice with a CRUD Rest API, and requests to each endpoint starts a new workflow instance, like this:
final String workFlowInstanceId = workflowClient.startWorkflow(createVehicleProfileRequest);
Once the workflow is completed, I want to return an aggregated result (of all tasks defined in the workflow) to the client that invoked my Rest API. The WorkflowClient API has a getWorkflow method, like this:
workflowClient.getWorkflow(workFlowInstanceId, false)
But I assume there must be a way for the Conductor server to push status changes of workflows to it's clients, rather than the client having to poll the server and check for the same?
Beta Was this translation helpful? Give feedback.
All reactions