Hi KNIME Community,
I’m working on creating a reusable component that needs to read from a file (could be CSV, model file, etc.). My goal is to package this component as a template that can be shared with others, including the file itself.
The Challenge: I want the file to “travel” with the component template so that when someone imports and uses my component, they don’t need to provide their own copy of the required file.
What I’ve Tried:
-
Using
knime://knime.workflow/datapaths, but these reference the parent workflow’s data directory, not the component itself -
The component template exports successfully, but when used in a different workflow, it can’t find the bundled file
Current Workarounds:
-
Embed data directly: Recreate small datasets using Table Creator (I guess it works for small data only)
-
External file dependency: Require users to provide their own file copy (not ideal for reusability)
Questions:
-
Is there a way to truly bundle files within a component template?
-
What’s the recommended approach for components that need reference files?
-
Are there any undocumented features or creative solutions you’ve used?
This seems like a common use case - creating self-contained, reusable components with their own reference data or configuration files. Any insights or suggestions would be greatly appreciated!
Thanks in advance!
Gio
