Hi, I created a flow of flows. Is there a way to c...
# ask-community
g
Hi, I created a flow of flows. Is there a way to call subflows with StartFlowRun depending on values from a input Parameter. For example input parameter has values [a, b, c] so I need to call StartFlowRun for flow “a”, “b” and “c”
k
Hey @Giovanni Giacco, I think you can map over the
StartFlowRun
call.
Copy code
start_flow = StartFlowRun(...)
with Flow(...) as flow:
     start_flow.map(parameters=[list_of_dict_of_parameters])
And I think this should trigger multiple StartFlowRun calls
You may need an intermediate task to reshape that input into a list of dictionaries