Workflow steps can be scheduled to run actions at a specific time, enabling easy automation of workflow processes. For example, an action can be executed to assign a task to another user, notify a manager, or escalate to another workflow step if a task has been in the same workflow step for a certain period of time.
Enabling Scheduled Workflow Actions
To enable a scheduled action on a workflow Step:
- Open the workflow scheme in the Workflow Scheme manager.
- Edit the Workflow Step by clicking the name of the step.
- Enable (check) the Schedule Enabled checkbox.
- Set the schedule properties for the workflow step.
Workflow Step Properties
The following properties control the behavior of schedule-enabled workflow steps:
|Schedule Enabled||Enables or disables a scheduled action for this workflow step.|
Note: The following two properties will only be displayed if this field is enabled (checked).
|Scheduled Action||Selected workflow action to execute when the scheduled time is exceeded.|
|Scheduled In||Time (in seconds) before the action will be executed (after the content enters this workflow step).|
For schedule-enabled workflows to function, the following two properties must be set in the dotmarketing-config.properties file:
## ESCALATION CONFIGURATION ESCALATION_ENABLE=true ESCALATION_CHECK_INTERVAL_CRON=0/30 * * * * ?
Note: It is strongly recommended that all changes to the dotmarketing-config.properties file be made through a properties file extension.
The system will poll workflows at a frequency defined by the setting of the
ESCALATION_CHECK_INTERVAL_CRON property. If scheduled workflows are not being used, you may set the
ESCALATION_ENABLE property to false or significantly increase the
ESCALATION_CHECK_INTERVAL_CRON interval to avoid uneccessary database access.