Project#loadProfile#
Reads per-bucket load and capacity of resources on the solved baseline of a Project. Read-only, and needs a solved project. For the load of hypothetical dates, use preview with a profile query instead.
Signature#
public LoadProfile
Synchronous and CPU-only. Doesn't change the project. Not synchronized: serialize calls on one instance.
Parameters#
| Name | Type | Description |
|---|---|---|
options |
LoadProfileOptions |
A ProfileQuery (range, resources, basis, task lists) and an optional baselineId check. Build it with new LoadProfileOptions(query). Must not be null |
Returns#
A new LoadProfile for the baseline dates.
Errors#
All exceptions are unchecked.
| Error | When |
|---|---|
ProjectException with code == ProjectError.NO_BASELINE |
The project is unsolved, including after apply |
ProjectException with code == ProjectError.STALE_BASELINE |
options.baselineId doesn't name the current baseline |
InputException |
to <= from, or more than 100 000 buckets per resource (path to); an unknown resource (path resources) |
NullPointerException |
options is null |
Example#
Print the overloaded days of a resource that works on two tasks at once.
;
;
Related#
LoadProfileOptions- the query and the baseline checkProfileQuery- range, resources, basis and task listsLoadProfile- per-bucket load and capacity it returns- Resource load - querying a profile and capacity modes