ProjectData#
A whole plan as one plain object: its tasks, plus optional config, calendars, links, resources and assignments. Input only: build it and pass it to Project#solve, Project#analyze or schedule. No call returns it.
Fields#
| Field | Type | Default | Description |
|---|---|---|---|
tasks |
TaskData[] |
required | The tasks of the plan. |
config |
SchedulingConfig |
every field at its default | Scheduling switches for the whole plan. null reads as omitted. |
calendars |
CalendarData[] |
[] |
Working-time calendars that tasks and resources reference by id. |
links |
LinkData[] |
[] |
Dependencies between tasks. |
resources |
ResourceData[] |
[] |
Resources that assignments book. |
assignments |
AssignmentData[] |
[] |
Resource bookings on tasks. |
An optional array can be left out or set to undefined. null in place of an array is a parse error. Unknown fields are ignored, both on ProjectData and in the records inside it, so objects with extra UI fields can be passed as they are.
Date fields take a DateValue: a string or a local Date.
Used by#
Project#solve:dataloads the plan into the project and schedules itProject#analyze:datasupplies the dates to analyze without loading themschedule:datais the plan to schedule once
Example#
const = ;
Related#
Project#solve- loading and scheduling a planTaskData- one task of the planSchedulingConfig- theconfigswitches- Project data - describing tasks, links, dates and config