Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Accessing output parameters from parent tasks inside a sub workflow #2778

Answered by v1r3n
prakashbalaji asked this question in Q&A
Discussion options

You must be logged in to vote

sub workflows are executed as an independent workflows, so they cannot access the inputs from the "parent" workflow tasks.
Any inputs that sub workflow needs should be passed as inputs to the sub workflow task and you can then access them as workflow.input.<parametername> in the sub workflow definiton.

e.g. In your subworkflow definition you should include the following input parameter block if you need these two parameters to be used in the sub workflow:

"inputParameters": {
        "estimationRequestId": "${estimation_requested.output.estimationRequestId}",
        "addressToken": "${start_process.output.addressToken}"
      },

And in one of the task where you plan to use the sub workf…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@prakashbalaji
Comment options

Comment options

You must be logged in to vote
1 reply
@prakashbalaji
Comment options

Answer selected by prakashbalaji
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants