Write to file system

Write to file system

This component is unavailable, if file system access has been disabled in the system settings.

 

This component writes the current workflow body to a file on the local file system. The output directory and filename must be specified in advance using metadata values "interform.plugin.archiver.folderName" and "interform.plugin.archiver.fileName" (can be set in the workflow using the advanced components "Set output directory" and "Set output filename"). The attribute "Filename conflict resolution" determines what happens if the output file conflicts with an existing file.

 

Normally the Basic output component: To filesystem should be considered instead of this component.

 

The write to file system workflow component has this parameter:

    

 

File name conflict resolution

With this you specify what the workflow should do, if the file already exists.
The Drop down options are:

Overwrite (default). If you select this, then any existing file with the same name will be overwritten by the new file.

Append version. Select this to add a counter (in parenthesis) at the end of the new file name - prior to the extension.

Rename existing. Rename the existing (old) file and add the timestamp to the file name. The old file will be rename similar to this: filename_20200812134611716.pdf.

Move existing. If you select this, then the original file will be moved to a subdirectory with the timestamp and the new file is created as requested.

 

Not only can you select one of the fixed values above for the file name conflict resolution, but you can also use an XPath expression to set a variable value e.g. depending on the input file. The XPath expression should return one of these values:

  1. Overwrite
  2. Rename
  3. AppendVersion
  4. AppendTimestamp

Unknown values will result in "Overwrite" being used.

 

The following values are also accepted (InterFormNG related values), but will result in a warning

  1. append-version-number
  2. rename-existing-file
  3. overwrite-existing-file
    • Related Articles

    • Set output file name

      The advanced set meta data workflow component, Set output file name, sets the output file name for the next write(s) to the file system. The Set output file name component has this parameter: Output file name The name of the file, that is written to ...
    • System log

      For normal use the job logs should be used in order to check up on processing of files, but in some rare cases you might need to look into the system log of InterFormNG2. To access the system log you need to sign on as a system admin. The system log ...
    • System monitor

      InterFormNG2 includes a system monitor. This is a tool for the system administrator, that can be used in order to verify the health of InterFormNG2 and how busy the application currently is. You can find the system monitor by signing on as a system ...
    • Delete file

      The advanced utilities workflow component, Delete file can be used in order to delete a local file. A prerequisite for using this workflow component is, that the global setting, Allow direct file access has been enabled on the Global system settings. ...
    • File output

      InterFormNG2 offers multiple methods for distributing all output formats. You can combine any input and output formats with various distribution options. The following list outlines all the methods for distributing output from InterFormNG2: For ...