Icon

Call Try Catch - Main

<p>You can try to identify a failure in a subworkflow and trigger a case when in the main one<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: KNIME Community Try Catch with workflows https://community.knime.com/c/ask-the-community/question-about-fail-in-execution-behavior-with-call-workflow-and-try-catch#comment_wrapper_107011269?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
  • You can try to identify a failure in a subworkflow and trigger a case when in the main one https://community.knime.com/c/ask-the-community/question-about-fail-in-execution-behavior-with-call-workflow-and-try-catch#comment_wrapper_107011269?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
  • var_port variable from sub workflow 0 = success = top port 1 = failure = bottom port
  • ../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
  • knime://knime.workflow/../data/result.xlsx
  • *- Sub detect the sub-workflow
  • dummy data
  • v_filter_rows =1 fail =2 success for the row filter in the sub-workflow

Nodes

Extensions

Links