Setup output file name

To set up output filename for sanitized file, go to Policy > Workflow rules > choose workflow name

In the output filename format field, variables listed below can be used. Beside variables, any characters can be used as static text, except these:

Copy

Available variables:

  • ${dataid} - this string identifies a file processing and can be used to retrieve results of processing
  • ${datetime} - date and time at the time of sanitization
  • ${original.basename} - name of the file to be sanitized, without file extension
  • ${original.extension} - extension of the file to be sanitized
  • ${converted.extension} - extension based on the target file type

Example usage

Copy

Example output:

Copy

Variables

Data ID

Copy

The result is the dataid of the sanitized file.

Original filename

Copy
AttributeDescription
short (default)filename until the first '.', ie. archive.tar.gz
longfilename until the last '.', ie. archive.tar.gz

Original file extension

Copy
AttributeDescription
short (default)extension from the last '.', ie. archive.tar.gz
longextension from the first '.', ie. archive.tar.gz

Converted file extension

Copy

The result is the selected target extension used for sanitization.

Date and time

Copy

Without any format string, the default format is 'yyyy_MM_dd-hh_mm'. With epoch format the result will be the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, minus the number of leap seconds that have taken place since then. When giving custom format, the '.', '_' and '-' characters also can be used.

ExpressionOutput
dthe day as number without a leading zero (1 to 31)
ddthe day as number with a leading zero (01 to 31)
dddthe abbreviated localized day name (e.g. 'Mon' to 'Sun'). Uses the system locale to localize the name.
ddddthe long localized day name (e.g. 'Monday' to 'Sunday'). Uses the system locale to localize the name.
Mthe month as number without a leading zero (1-12)
MMthe month as number with a leading zero (01-12)
MMMthe abbreviated localized month name (e.g. 'Jan' to 'Dec'). Uses the system locale to localize the name.
MMMMthe long localized month name (e.g. 'January' to 'December'). Uses the system locale to localize the name.
yythe year as two digit number (00-99)
yyyythe year as four digit number

These expressions may be used for the time:

ExpressionOutput
hthe hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)
hhthe hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)
Hthe hour without a leading zero (0 to 23, even with AM/PM display)
HHthe hour with a leading zero (00 to 23, even with AM/PM display)
mthe minute without a leading zero (0 to 59)
mmthe minute with a leading zero (00 to 59)
sthe second without a leading zero (0 to 59)
ssthe second with a leading zero (00 to 59)
zthe milliseconds without leading zeroes (0 to 999)
zzzthe milliseconds with leading zeroes (000 to 999)
AP or Ause AM/PM display. A/AP will be replaced by either "AM" or "PM".
ap or ause am/pm display. a/ap will be replaced by either "am" or "pm".
tthe timezone (for example "CEST")
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard