Skip to content

EventSchedulerBuilder

Configures one crontab schedule of an Event.

EventBuilder.addSchedule

state(state): this

Restricts a Template Event schedule to Items in the given states.

string | string[]

State key or keys an Item must be in.

this

This builder for chaining.

Without a state filter the Event is published against every active Item of the Template. An empty array publishes against no Items.

Only paused or pending Items

attendanceEvaluationDue.addSchedule('hourly', '20 * * * *').state(['paused', 'pending']);

toDefinition(): EventScheduleDefinition

Emits the Definition of this schedule.

EventScheduleDefinition