I have a quick question. Imagine that I use a workchain that submits two subworkchains. I want to retrieve the outputs of the two subworkchains via the big workchain. Hence, I have to use:
Now, Imagine that unfortunately, subworkchain1 and subworkchain2 have an output with the same name, ‘output_parameters’. I guess that this is a conflict because when writing something like bigworkchain_node.outputs.output_parameters, we have no way to distinguish which one we want, the one corresponding to subworkchain1 or subworkchain2.
Now my question is, how can I solve this issue in a smart way? Is there a way to rename certain outputs of the subworkchains? I am looking forward to read your ideas
the expose_outputs and exposed_outputs methods have the namespace argument, which addresses the “issue” that you mentioned. In your example, you could do the following: