# ScheduleType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Task schedule. Specifies when and how often something should happen.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
recurrence | property TaskRecurrenceType | [0,1] | Whether the task activity is to be executed only once (single-run tasks) or periodically (recurring tasks).
earliestStartTime | property dateTime | [0,1] | Earliest time when the task is allowed to start.
latestStartTime | property dateTime | [0,1] | Latest time when the task is allowed to start.
latestFinishTime | property dateTime | [0,1] | Latest time when the task is allowed to run.
interval | property int | [0,1] | Interval in seconds between task runs.
cronLikePattern | property string | [0,1] | Cron-like pattern specifying time(s) when the task is to be run.
misfireAction | property MisfireActionType | [0,1] | What is to be done when the planned start time arrives without the task actually starting.

- ### Items

  - #### recurrence

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    Whether the task activity is to be executed only once (single-run tasks) or periodically (recurring tasks). Default value is "recurring" for tasks that have interval or cronLikePattern set, and "single" otherwise. However, there may be tasks with explicitly set recurrence=recurring, with neither interval or cronLikePattern set. Such tasks are to be started manually.

  - #### earliestStartTime

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Earliest time when the task is allowed to start.

  - #### latestStartTime

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Latest time when the task is allowed to start.

  - #### latestFinishTime

    Flags: ignored,RAM,runtime

    Multiplicity: [0,1]

    Latest time when the task is allowed to run. It is the responsibility of the task handler to finish working when this time arrives. NOTE: This attribute is currently not used; its use is planned.

  - #### interval

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Interval in seconds between task runs.

  - #### cronLikePattern

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Cron-like pattern specifying time(s) when the task is to be run. Currently only loosely-bound recurring tasks can use this feature.

  - #### misfireAction

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    What is to be done when the planned start time arrives without the task actually starting.