Icon

kn_​example_​java_​edit_​variables

KNIME - small useful Java Tasks and other little helpers

KNIME - small useful Java Tasks and other little helpers

BTW: KNIME protocol comes in very handyknime://knime.workflowhttps://www.knime.com/self-paced-course/l1-dw-knime-analytics-platform-for-data-wranglers-basics/lesson2 fun with URI, URL and File Pathshttps://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_uri_url_path_fun_with KNIME - small useful Java Tasks and other little helpers create a file path with a combination of Meta-Information and Java Snippet gives you a row number preserves a ROWID you can later (re-)use Create name and path return $$ROWINDEX$$;=> new_rowindexreturn $$ROWID$$;new_rowidvar_pos_namevar_path_parent_foldervar_path_data=> make the row number your RowID and save_my_original_rowidv_my_excel_file_pathdeterminepath and name of workflow=> make the saved RowID the NEW RowID and save_my_original_rowid*_pathdata/my_excel_file.xlsxv_path_excel_filev_file_namev_path*data/my_first_excel_file.xlsx Data Generator Java Snippet(simple) Java Snippet(simple) String Manipulation String Manipulation Java Snippet(simple) RowID Java EditVariable (simple) Extract ContextProperties RowID Variable toTable Row Table Rowto Variable String to Path(Variable) Excel Writer Java EditVariable (simple) Java EditVariable (simple) String to Path(Variable) Excel Writer BTW: KNIME protocol comes in very handyknime://knime.workflowhttps://www.knime.com/self-paced-course/l1-dw-knime-analytics-platform-for-data-wranglers-basics/lesson2 fun with URI, URL and File Pathshttps://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_uri_url_path_fun_with KNIME - small useful Java Tasks and other little helpers create a file path with a combination of Meta-Information and Java Snippet gives you a row number preserves a ROWID you can later (re-)use Create name and path return $$ROWINDEX$$;=> new_rowindexreturn $$ROWID$$;new_rowidvar_pos_namevar_path_parent_foldervar_path_data=> make the row number your RowID and save_my_original_rowidv_my_excel_file_pathdeterminepath and name of workflow=> make the saved RowID the NEW RowID and save_my_original_rowid*_pathdata/my_excel_file.xlsxv_path_excel_filev_file_namev_path*data/my_first_excel_file.xlsx Data Generator Java Snippet(simple) Java Snippet(simple) String Manipulation String Manipulation Java Snippet(simple) RowID Java EditVariable (simple) Extract ContextProperties RowID Variable toTable Row Table Rowto Variable String to Path(Variable) Excel Writer Java EditVariable (simple) Java EditVariable (simple) String to Path(Variable) Excel Writer

Nodes

Extensions

Links