thank you! i have a follow up question - is there a way to import a flow and then add a new task to it with an edge attached to a task from the imported flow?
k
Kevin Kho
05/10/2022, 6:38 PM
Yes to the new task. No to the edge I think.
Copy code
with Flow(..) as flow:
...
with flow:
new_task()
but you lose the references I think
a
Anna Geller
05/10/2022, 6:39 PM
no, the easiest would be to create another flow or package the code that needs to be reused to a separate function and call from a task
l
Lana Dann
05/10/2022, 6:41 PM
hmm, how about importing a flow and then replacing a task in it? is that possible?
k
Kevin Kho
05/10/2022, 7:44 PM
No that is not. You should likely have some form of flow factory can you can parameterize and change the structure based in the functions
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.