Skip to content

Listeners: Timer

TekMonks edited this page Mar 11, 2019 · 3 revisions

The Timer Listener

Scheduler for starting flows at given intervals. Uses the CRON format.

The code block below documents the format for the Timer Listener node.

"listener": {
	"type":"timer", 
	"isMessageGenerator": true,
	"cron": "* * * * * *"
}

The cron property defines the time intervals.

Cron Ranges

When specifying your cron values you'll need to make sure that your values fall within the ranges. For instance, some cron's use a 0-7 range for the day of week where both 0 and 7 represent Sunday. ASB's CRON does not.

  • Seconds: 0-59
  • Minutes: 0-59
  • Hours: 0-23
  • Day of Month: 1-31
  • Months: 0-11 (Jan-Dec)
  • Day of Week: 0-6 (Sun-Sat)

The property isMessageGenerator must be set to true for this node.

The CRON listener injects an empty message to start the flow, when it is activated.