I have been trying to implement an idea - unsuccessfully - and I was hoping in this fine community someone would be able to help me come up with a solution.
I have a flow that calls other work flows within an ordinary loop. Works great! (pseudo flow below)
I would like to able to call a list of workflows 2 to n where the output of the Call Workflow Node is the input to the next Call Workflow Node. Basically, I cant do it. (below is a pseudo flow representation of my latest effort)
Hi,
I think you are going to need the Call Workflow (Table based) node for this, because you want to pass on a whole table, not just a row. And you need some way to tell the Recursive Loop End when to stop.
I have created a small example and uploaded it to KNIME Hub: alexanderfillbrunn/Public – Recursive Workflows – KNIME Community Hub.
Kind regards,
Alexander
I create a table with all workflow names, file path and a select column with 0 or 1 values as bolean. With row filter, I’ll select only I need to pass from the table, you can sort if you set priorities too.
Then, I call Table Row to Variable Loop Start and Select the name from workflow columns to run 1-to-1.
Inside I just make a call to this workflow using the flowvariables with the path (as real path) and close the loop with Variable Loop end.
My apologies for not replying sooner, as I mentioned before, I had some priority reordering at work.
@denisfi thank you for your suggested flow. I found it an interesting way to order and call workflows, it is something I will be using in the future. Thank you.
@AlexanderFillbrunn thank you for your suggested flow. It was really helpful because to not only did it do want I wanted it to do, it also (after a couple of hours playing) taught me a lot about implementing recursive loops.