Class Schedule
- java.lang.Object
-
- io.serverlessworkflow.api.schedule.Schedule
-
- All Implemented Interfaces:
Serializable
public class Schedule extends Object implements Serializable
Start state schedule definition- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Schedule.DirectInvoke
-
Constructor Summary
Constructors Constructor Description Schedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cron
getCron()
Schedule cron definitionSchedule.DirectInvoke
getDirectInvoke()
Define if workflow instances can be created outside of the defined interval/cronString
getInterval()
Time interval (ISO 8601 format) describing when the workflow starting state is activeString
getTimezone()
Timezone name used to evaluate the cron expression.void
setCron(Cron cron)
Schedule cron definitionvoid
setDirectInvoke(Schedule.DirectInvoke directInvoke)
Define if workflow instances can be created outside of the defined interval/cronvoid
setInterval(String interval)
Time interval (ISO 8601 format) describing when the workflow starting state is activevoid
setTimezone(String timezone)
Timezone name used to evaluate the cron expression.Schedule
withCron(Cron cron)
Schedule
withDirectInvoke(Schedule.DirectInvoke directInvoke)
Schedule
withInterval(String interval)
Schedule
withTimezone(String timezone)
-
-
-
Method Detail
-
getInterval
public String getInterval()
Time interval (ISO 8601 format) describing when the workflow starting state is active
-
setInterval
public void setInterval(String interval)
Time interval (ISO 8601 format) describing when the workflow starting state is active
-
getCron
public Cron getCron()
Schedule cron definition
-
setCron
public void setCron(Cron cron)
Schedule cron definition
-
getDirectInvoke
public Schedule.DirectInvoke getDirectInvoke()
Define if workflow instances can be created outside of the defined interval/cron
-
setDirectInvoke
public void setDirectInvoke(Schedule.DirectInvoke directInvoke)
Define if workflow instances can be created outside of the defined interval/cron
-
withDirectInvoke
public Schedule withDirectInvoke(Schedule.DirectInvoke directInvoke)
-
getTimezone
public String getTimezone()
Timezone name used to evaluate the cron expression. Not used for interval as timezone can be specified there directly. If not specified, should default to local machine timezone.
-
setTimezone
public void setTimezone(String timezone)
Timezone name used to evaluate the cron expression. Not used for interval as timezone can be specified there directly. If not specified, should default to local machine timezone.
-
-