Workflow Writer

This node writes a workflow from a port object into a folder or an exported KNIME workflow (.knwf) archive.

This node can access a variety of different file systems. More information about file handling in KNIME can be found in the official File Handling Guide.

Options

Settings

General settings regarding the output file location and formats.

Write to
Select a file system in which you want to store the file. There are three default file system options to choose from:
  • Local File System: Allows you to select a location in your local system.
  • Mountpoint: Allows you to write to a mountpoint. When selected, a new drop-down menu appears to choose the mountpoint. Unconnected mountpoints are greyed out but can still be selected (note that browsing is disabled in this case). Go to the KNIME Explorer and connect to the mountpoint to enable browsing. A mountpoint is displayed in red if it was previously selected but is no longer available. You won't be able to save the dialog as long as you don't select a valid i.e. known mountpoint.
  • Relative to: Allows you to choose whether to resolve the path relative to the current mountpoint, current workflow or the current workflow's data area. When selected a new drop-down menu appears to choose which of the three options to use.
It is possible to use other file systems with this node. Therefore, you have to enable the file system connection input port of this node by clicking the ... in the bottom left corner of the node's icon and choose Add File System Connection port.
Afterwards, you can simply connect the desired connector node to this node. The file system connection will then be shown in the drop-down menu. It is greyed out if the file system is not connected in which case you have to (re)execute the connector node first. Note: The default file systems listed above can't be selected if a file system is provided via the input port.
Folder
Enter a path to a folder. The required syntax of a path depends on the chosen file system, such as "C:\path\to\file" (Local File System on Windows) or "/path/to/file" (Local File System on Linux/MacOS and Mountpoint). For file systems connected via input port, the node description of the respective connector node describes the required path format. You can also choose a previously selected file from the drop-down list, or select a location from the "Browse..." dialog. Note that browsing is disabled in some cases:
  • Mountpoint: Browsing is disabled if the selected mountpoint isn't connected. Go to the KNIME Explorer and connect to the mountpoint to enable browsing.
  • File systems provided via input port: Browsing is disabled if the connector node hasn't been executed since the workflow has been opened. (Re)execute the connector node to enable browsing.
The location can be exposed as or automatically set via a path flow variable.
Create missing folders
Select if the folders of the selected output location should be created if they do not already exist. If this option is unchecked, the node will fail if a folder does not exist.
If exists
Specify the behavior of the node in case the output file already exists.
  • Overwrite: Will replace any existing workflow.
  • Fail: Will issue an error during the node's execution (to prevent unintentional overwrite).
Use custom workflow name
If checked, a custom workflow name is used as specified below. Otherwise the default workflow name, as shown above, is used.
Custom workflow name
A customizable name for the to-be-written workflow.

Deployment Options

Write workflow
If selected, the workflow will be written into a folder and the KNIME Explorer view will be refreshed.
Write workflow and open in explorer
If selected, the workflow will be written into a folder, the KNIME Explorer view will be refreshed and the written workflow will be opened in KNIME Analytics Platform.
Export workflow as knwf archive
If selected, he workflow will be written as a .knwf archive, just as if it were exported from KNIME Analytics Platform. This archive can be imported into other installations of KNIME Analytics Platform.
Update / disconnect links of components and metanodes
If the workflow segment contains linked components or linked metanodes, these operations will update or disconnect (remove) these links. If both operations are enabled, the components/metanodes will first be updated and then disconnected.

Inputs and outputs

Add input node
Allows one to add input nodes connected to selected inputs prior writing. Depending on the selected node, there is a limited set of options available to pre-configure the node to be added. Furthermore, if tabular input data is stored with the input, it is used as examples input data for added input nodes.
Add output node
Allows one to add output nodes connected to selected inputs prior writing. Depending on the selected node, there is a limited set of options available to pre-configure the node to be added.

Input Ports

Icon
The workflow to be written.
Icon
The file system connection.

Output Ports

This node has no output ports

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.