Icon

Call Workflow - Main

<p>Playing around with Call Workflow - main-workflow to "Call Workflow - Sub" with the new "KNIME Workflow Services"<br></p><p>two ways to communicate data with the sub-workflow: just send the data there or save a data file and send the path to the sub workflow (might also be static)</p>

URL: (45698) first forum entry https://forum.knime.com/t/use-data-from-another-worklow-into-current-workflow/45698/2?u=mlauber71
URL: Call sub workflow from a mother KNIME workflow https://kni.me/w/uPGki0nVinczB7SZ
URL: (48189) second forum entry https://forum.knime.com/t/call-workflow-table-based-not-accepting-variable-with-path/48189/6?u=mlauber71
URL: Run multiple instances of another workflow in parallel https://hub.knime.com/-/spaces/-/~7olAIqh7Cqf6h8x_/current-state/
URL: Medium: KNIME, Paths and Loops — Automate Everything https://medium.com/low-code-for-advanced-data-science/knime-paths-and-loops-automate-everything-213455788685

Annotations and comments
  • Playing around with Call Workflow - main-workflow to "Call Workflow - Sub" with the new "KNIME Workflow Services" two ways to communicate data with the sub-workflow: just send the data there or save a data file and send the path to the sub workflow (might also be static) https://forum.knime.com/t/call-workflow-table-based-not-accepting-variable-with-path/48189/6?u=mlauber71
  • In order to get a Workflow Service Input / Output other than the table connection you have to: drag the connection of the type you want from the previous node until a transparent plus sign appears then you search for the "Workflow Service Output" when you click this it will change the type from table to the type you were just dragging along .... THX to Linh for this insight ... https://forum.knime.com/t/call-workflow-table-based-additional-table-input-ports-possible/83894/2?u=mlauber71
  • ../Call Workflow - Sub call workflow from the same folder and send a table there and some Flow Variables ... => you might have to apply the settings from the "Call Workflow - Sub" once
  • context.workflow.parent-path
  • path.separator.system length_parent_path= length(column("context.workflow.parent-path")) substr(column("context.workflow.parent-path"), length_parent_path-1, 1)
  • => paths
  • create /data/ folder if it does not exist
  • context.workflow.absolute-path context.workflow.path context.workflow.name
  • context.workflow.data-path
  • data-path
  • path variables
  • File_path
  • Date_Time1
  • var_workflow_path
  • VAR1 multiplied by 20
  • URI
  • _location of the Sub workflow
  • File_path_2
  • ../new_file.table => file written in the sub-workflow "workflow_sub"
  • File path must seemingly be transfered as full path and string to the sub-workflow
  • Date&Time
  • ../data/test.table
  • var_saved_file path where the file was saved

Nodes

Extensions

Links