Folder Path Cleanse
The folder path cleanse task uses Regular Expressions (regex) to alter Folder Names. You can use this task when the repository you are migrating your files to has limitations on what characters can be used in the folder names. For example if the folder names cannot contain any spaces this task can be used to replace spaces with an underscore or you can leave the Replacement Text field blank to remove spaces. This task is functionally identical to Filename Cleanse Task, except that is changes the document parent path.
Configuration
To use this task go to the task tab in your job. Select the task from the drop down and click the plus circle to configure the task. Click done after making any changes to save.
Condition check
It will execute the task when the condition's result is 'true', 't', 'on', '1', or 'yes' (case-insensitive), or run on all conditions if left empty. This condition is evaluated for each document, determining whether the task should be executed based on the specified values.
Example: If I only want to run this task for PDF documents I would use the expression: equals('#{rd.mimetype}',"application/pdf")
Regex to Match: The regex pattern to search for in the Folder Name.
Enter the regex pattern you want 3Sixty to search for in the Folder Name. The default value [^a-zA-Z0-9 \.]+ matches any character that isn't a letter, number, space or period an unlimited number of times.
Replacement Text: Replacement for matches.
Enter the words or character you want 3Sixty to replace the words or characters it finds based on the Regex condition.
Examples
If the output location does not allow spaces in a folder name, you can use the following configuration:
Regex: \s
Replacement Text: (leave blank)
This configuration removes the space from the default value and leaves the replacement text field empty.
In doing so folder path:
C:\3Sixty Sample Docs\Test From Repo
Gets converted to:
C:\3Sixty Sample Docs\Test Out To\3SixtySampleDocs\TestFromRepo
API Keys
Processor: folderPathCleanseTask
Key |
Display Name |
Type |
---|---|---|
use_condition | Check a condition before executing this task. | Boolean |
task_condition |
Condition |
String |
task_stop_proc |
Stop Processing |
Boolean |
fpcjt_regex |
Regex to Match |
String |
fpcjt_replace |
Replacement Text |
String |