schedule property configures when and how a workflow should be executed automatically. Workflows can be scheduled using time intervals, CRON expressions, delay durations, or event triggers.
Properties
Specifies the duration of the interval at which the workflow should be executed.Unlike
after, this option will run the workflow regardless of whether the previous run is still in progress.Required when no other property has been set.Specifies the schedule using a CRON expression.Example:
'0 0 * * *' for daily at midnight.Required when no other property has been set.Specifies a delay duration that the workflow must wait before starting again after it completes.In other words, when this workflow completes, it should run again after the specified amount of time.Required when no other property has been set.
Specifies the events that trigger the workflow execution.See Event Consumption Strategy for details.Required when no other property has been set.
Duration Format
Durations can be defined using properties or ISO 8601 strings:Number of days, if any.
Number of hours, if any.
Number of minutes, if any.
Number of seconds, if any.
Number of milliseconds, if any.
Event Consumption Strategy
When using event-based scheduling, configure how the workflow consumes events:Configures the workflow to wait for all defined events before starting execution.Required if
any and one have not been set.Configures the workflow to wait for any of the defined events before starting execution.Required if
all and one have not been set.If empty, listens to all incoming events.Configures the workflow to wait for the defined event before starting execution.Required if
all and any have not been set.Event Filter
A name/value mapping of the attributes filtered events must define.Supports both regular expressions and runtime expressions.
A name/definition mapping of the correlations to attempt when filtering events.
Examples
Interval-Based Schedule (Every)
Run the workflow every 5 minutes:CRON Schedule
Run the workflow daily at midnight:Delay-Based Schedule (After)
Run the workflow again 1 hour after completion:Event-Based Schedule
Trigger workflow on a specific event:Complex Duration
Run every 2 days, 3 hours, 15 minutes, and 30 seconds:CRON Expression Reference
CRON expressions consist of 5 fields:Common CRON Examples
0 * * * *- Every hour0 0 * * *- Daily at midnight0 9 * * 1-5- Weekdays at 9:00 AM0 0 1 * *- First day of every month*/15 * * * *- Every 15 minutes0 0,12 * * *- Twice a day (midnight and noon)
Usage Notes
- Only one scheduling property should be set (
every,cron,after, oron) - The
everyschedule runs the workflow at fixed intervals, regardless of execution status - The
afterschedule waits for the workflow to complete before starting the countdown - CRON schedules follow standard CRON syntax
- Event-based schedules allow workflows to react to external triggers
- Durations can use any combination of days, hours, minutes, seconds, and milliseconds