Schedule


Activity Description

This activity is designated as an Event Source, indicating that it serves as a trigger and will always be the first activity in a workflow. Its purpose is to schedule when the workflow should be triggered. The scheduling options include triggering once at a given time or repeated executions based on a cron expression.


Properties

Activity Group
Common

Activity Type

EVENT_SOURCE

Activity Name

Schedule

Schedule Type

null

Initial Delay

null

Delay

null

Period

null

Once At

null

Schedule Expression

null

Zone Id

null


Sample Configuration

{
  "name": "Schedule",
  "description": "Schedule is Event Source - which means it is a trigger and will always be the first activity in a workflow. This activity is used to schedule at what time the workflow should trigger. The options are once at a given time, or repeated executions based on cron expression.",
  "properties": {
    "activityGroup": "Common",
    "activityType": "EVENT_SOURCE",
    "activityName": "Schedule",
    "scheduleType": "REPEATED", 
    "initialDelay": 0,
    "delay": 30000, 
    "period": 60000, 
    "onceAt": null,
    "scheduleExpression": "0 0 12 * * ?", 
    "zoneId": "UTC"
  }
}

In this example:

  • Schedule Type: "REPEATED" indicates that the workflow should be triggered repeatedly.

  • Initial Delay: 0 indicates no initial delay before the first execution.

  • Delay: 30000 milliseconds (30 seconds) is the delay between successive executions.

  • Period: 60000 milliseconds (1 minute) is the duration between repeated executions.

  • Once At: null since it's a repeated schedule.

  • Schedule Expression: "0 0 12 * * ?" is a sample cron expression representing daily execution at 12:00 PM.

  • Zone Id: "UTC" specifies the time zone as Coordinated Universal Time.

This is a sample configuration, and you can adjust the values based on your specific requirements and scheduling needs.


Adding "Schedule "Activity to Workflow

  1. Go to the "Activities" section on the left side.

  2. Find and choose the activities you need.

  3. Drag them onto the canvas to create your workflow.

  4. For scheduling tasks, drag the "Schedule" activity onto the canvas.

Configuring the "Schedule" Activity

Last updated