EventSchedulerBuilder
Configures one crontab schedule of an Event.
Methods
Section titled “Methods”state()
Section titled “state()”state(
state):this
Restricts a Template Event schedule to Items in the given states.
Parameters
Section titled “Parameters”string | string[]
State key or keys an Item must be in.
Returns
Section titled “Returns”this
This builder for chaining.
Remarks
Section titled “Remarks”Without a state filter the Event is published against every active Item of the Template. An empty array publishes against no Items.
Example
Section titled “Example”Only paused or pending Items
attendanceEvaluationDue.addSchedule('hourly', '20 * * * *').state(['paused', 'pending']);toDefinition()
Section titled “toDefinition()”toDefinition():
EventScheduleDefinition
Emits the Definition of this schedule.

