conductor icon indicating copy to clipboard operation
conductor copied to clipboard

How can I get output of Workflow?

Open Leggrand opened this issue 8 years ago • 4 comments

Hi,

I'm using this endpoint to invoke a workflow: http:/{localURI}/api/workflow/WorkflowBasic?version2&correlationId=1

And using this endpoint to get the workflow (here I can see the status of execution and the output data): http:/{localURI}/api/workflow/6de14451-8b86-49af-bb19-fdc36758f0fc

I need invoke a workflow and, when this is completed I would liked get output of this workflow. This is possible? How can I do this?

Has anyone had this need at some point?

Tks

Leggrand avatar Jun 26 '18 21:06 Leggrand

Output of the workflow is by default the output of the last executed task. Incase you need specific outputParameters - include outputParameters attribute in the workflow.

outputParameters : { key : ".output." }

sudvarma avatar Jul 03 '18 08:07 sudvarma

Hi there! @sudvarma, my workflow works fine and he implement the field "outputParameters". This is not the question. The question is: How can I get the result of execution? Because I need a execution synchronous, and I know, the pattern execution of workflow is asynchronous. How can I do this?

Leggrand avatar Jul 04 '18 19:07 Leggrand

Closing this issue, the functionality is impossible on Conductor.

Leggrand avatar Oct 04 '18 11:10 Leggrand

The popular pattern is to poll for the Workflow status until it has completed.

saidatta avatar Oct 04 '18 18:10 saidatta