Date-Based Folder Path
This task takes the entered date field on the Repository Document and uses it to generate the parent folder path for the document. This mimics how Alfresco stores its data in the filesystem.
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")
Repository Document Field
The field to use for the folder path. This can be any date field.
Pattern
The pattern used to break down the date into a folder path.
The default is /yyyy/M/dd/kk/mm/ss/. In this case, kk is used for hours.
Examples
In the following example for a document file.txt that was last modified on April 12, 1999, if you set the field to used the modified date '#{rd.modifieddate}' and the date is 1999-04-20T12:01:23, then your path with the default pattern will be:
/1999/4/20/12/01/23/file.txt
API Keys
Processor: dateBasedFolderPathTask
Key |
Display Name |
Type |
---|---|---|
use_condition | Check a condition before executing this task. | Boolean |
task_condition |
Condition |
String |
task_stop_proc |
Stop Processing |
Boolean |
jt_field |
Repository Document Field |
String |
jt_datefolderpath_pattern |
Pattern |
String |