Accessing output parameters from parent tasks inside a sub workflow #2778
-
Hello All, I have a workflow and subworkflow and the definition is highlighted in the below image. I cannot access the http output parameters from the parent tasks inside my subworkflow. In the below example the estimationRequestId and addressToken are always null even though the "estimation_requested" and "start_process" task has output variables populated correctly. Would be great if anyone can give pointers or let me know the issue here. Thanks for the help. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Can you include the workflow inputs for the sub-workflow and definition of the sub-workflow? |
Beta Was this translation helpful? Give feedback.
-
sub workflows are executed as an independent workflows, so they cannot access the inputs from the "parent" workflow tasks. 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:
And in one of the task where you plan to use the sub workflow, use it as:
|
Beta Was this translation helpful? Give feedback.
-
@v1r3n - This worked perfectly. |
Beta Was this translation helpful? Give feedback.
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:
And in one of the task where you plan to use the sub workf…