Scheduled actions
Alfresco provides a way to execute these actions automatically at a specified time as well. This would be helpful in use cases, such as periodically checking document status, or generate reports, or execute business rules and notify certain users.
Alfresco supports Scheduled actions so that you could configure certain actions to run at certain time automatically. A scheduled action is made up of three parts:
A cron expression: Defines the time
A query template: Generates a query to select set of nodes (space and documents)
An action template: The action to be executed
The query could be of any type like a document has an aspect, it was created in the last month, it is due in the next month, it is in a category, and so on.
Example to archive expired content
We have considered a scenario where the HR group maintains certain corporate forms and policies that are time bound, that is, which will expire after some time. In the earlier example, you manually ran the script. In this section...