Skip to main content

User Guide

Path Replacements

In addition to the use of wildcards in relative paths it is also possible to use path replacements. (Use this format in particular when the Job is to be invoked using the Privitar REST API.) For example:

2016-${month}/*.avro

To specify a path replacement:

  • When creating or Editing a Job, select the Data Locations tab (if present). Otherwise, the data locations will be displayed in the window underneath the Input Root Folder field.

  • Enter a Relative Path with path replacements in the Relative Path column:

UUID-7e4de066-336b-5b4b-023d-a44ba2145117.png

In this example, the month replacement can be specified to invoke the Job to process specific matching files. Replacing month with 01 gives a resulting relative path of 2016-01/*.avro.

When the Job is run, a message will be displayed in the Run Job window asking you to provide values for the variable parameters.

UUID-a685b25c-e3f3-13df-5001-3a3cf778c049.png

The Path Replacements can themselves contain wildcard symbols. When this is done, the entire replaced path is treated as if the wildcards were included directly. For example, replacing month in this example with * gives a relative path that is equivalent to 2016-*/*.avro.