CalendarMode#
Selects which calendars place a task's work. Set it as SchedulingConfig.calendarMode. The default is RESOURCE.
Declaration#
;
Variants#
| Variant | Description |
|---|---|
RESOURCE |
Default. Each assignment works on its resource's calendar, intersected with the task's calendar when both have one. A resource's calendarId must name a calendar in ProjectData.calendars. |
TASK |
Each task works on its own calendar only: TaskData.calendarId, else the global calendar. Resource calendars are ignored, and a resource's calendarId isn't resolved. |
TASK_INHERITED |
Same as TASK, except that a task without a calendarId uses the calendar of its nearest ancestor that has one. |
Only TASK_INHERITED inherits calendars from summary tasks. With SchedulingConfig.useCalendars set to false, every calendar is flat 24/7 time, so the mode has no effect on dates.
Working-time calendars covers how each mode combines calendars and places work.
Example#
;
;
Related#
SchedulingConfig- where the mode is setCalendarData- the calendars it chooses between- Working time and calendars - task and resource calendars
- Resources and assignments - how resource calendars affect assignments