Rename job is a processor that provides various mechanisms for renaming the incoming job and/or the files inside a job folder.
Keywords can be used with the search function above the Elements pane.
The keywords for the Rename job element are:
Rename job allows only a single outgoing connection.
Property |
Description |
---|---|
Name |
The name of the flow element displayed in the canvas |
Affect job name for |
Determines for which jobs the rename actions are applied to the name of the job (individual file or job folder):
|
Remember original name |
If set to yes, the original filename of the incoming job is stored in private data in the internal job ticket for the job so that it can be restored with a subsequent rename flow element; see Restoring the original filename Only the name of the job is remembered; not the name of any files inside a job folder |
Private data key |
The first portion of the private data key used to store the original filename; see Restoring the original filename |
Files inside job folder |
Determines what to do with files inside a job folder:
|
Nested folder levels |
Specifies the number of nested subfolder levels to act on (zero means "leave alone"; use a large number to act on all levels) |
Resolve collisions |
Determines how to resolve situations where two files on the same level end up with the same name (after all other actions specified in this tool have been performed):
|
Pattern |
A pattern for the suffix or replacement string used to resolve collisions; "count" is replaced by a number with an appropriate number of digits (that is, a single digit unless there are many files colliding to the same name) |
Action 1 |
Determines the first rename action taken:
|
Act on |
Determines which portion of the filename is affected:
|
Prefix |
The prefix to add at the start of the filename |
Suffix |
The suffix to add at the end of the filename |
Start index |
The one-based start index of the filename segment to remove/keep |
End index |
The one-based end index of the filename segment to remove/keep; zero means until the end of the filename |
Search for |
The search string to be replaced, or a regular expression that matches the string to be replaced |
Replace by |
The replacement string, or a regular expression that can use the groups captured by the search regexp |
Repeat |
Determines the repeat behavior of the search/replace:
|
Allowed character set |
Determines the allowed character set:
|
Replacement character |
Determines the replacement for disallowed characters:
|
New extension |
The new filename extension |
Action 2 … Action 5 |
The subsequent rename actions taken; these properties have the same subordinate properties as the first action property |
If the "Remember original name" property is set to yes, the tool stores the original name of the incoming job in the internal job ticket for the job using private data keys as follows:
Private data key |
Stored value |
---|---|
<key> |
The original filename including extension |
<key>.Name |
|
<key>.NameProper |
The original filename without extension |
<key>.Extension |
The original filename extension |
For example, if the private data key property is left to its default value, the original filename without extension can be retrieved later on with the following variable:
[Job.PrivateData:Key="Original.NameProper"]
The "Remember original name" option works even if all rename actions are set to "none"; this can be useful to capture the job name before it gets changed by some other tool or application.