Conductor: How can I get output of Workflow?

Created on 26 Jun 2018  路  4Comments  路  Source: Netflix/conductor

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

Most helpful comment

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

All 4 comments

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."
}

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?

Closing this issue, the functionality is impossible on Conductor.

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

Was this page helpful?
0 / 5 - 0 ratings