Dependencies & critical paths
Analyze task dependencies to identify the work that determines project duration. The planner returns earliest/latest times, total float, resource IDs, and critical indicators that your application can display beside a timeline.
What you configure
- analyzeCriticalPath
- Supply the task collection to the licensed planner.
- durationMinutes / dependencyIds
- Describe each task's duration and prerequisite task IDs.
- resourceIds
- Retain resource context in the analysis result when relevant.
Essential integration
This assumes the shared Quick start already provides premiumLicense and, for UI views, premiumCalendarOptions. Only the feature-specific setup is shown.
import { AdvancedResourcePlanner } from '@wts-calendar/core/advanced-resource-planning';
const planner = new AdvancedResourcePlanner({
license: premiumLicense,
timeZone: 'UTC',
resources: [
{ id: 'design', title: 'Design studio', capacity: 2 },
{ id: 'engineering', title: 'Engineering', capacity: 4 },
],
events: [
{
id: 'review',
title: 'Design review',
resourceId: 'design',
start: '2026-09-07T09:00:00Z',
end: '2026-09-07T10:30:00Z',
},
],
});
export const analysis = planner.analyzeCriticalPath([
{ id: 'design', durationMinutes: 90 },
{
id: 'build',
durationMinutes: 180,
dependencyIds: ['design'],
resourceIds: ['engineering'],
},
{ id: 'inspect', durationMinutes: 45, dependencyIds: ['build'] },
{ id: 'notes', durationMinutes: 30, dependencyIds: ['design'] },
]);
console.table(analysis.tasks);
console.log(analysis.criticalPathIds, analysis.projectDurationMinutes);Behavior and lifecycle
- The result includes one deterministic critical path and per-task float information.
- Cycles, unknown dependencies, duplicate IDs, and invalid durations fail before a result is returned.
Limits and responsibilities
- Critical-path analysis does not automatically reschedule calendar events.
- It is not a resource-leveling optimizer; task durations and dependencies are supplied by your application.
Enable this capability
- Optional module
- @wts-calendar/core/advanced-resource-planning
- Local capability ID
- advanced-resource-planning · enabled by package-wide Premium
Use the request form to describe your project and deployment origins. Pricing and terms are confirmed privately. A WTS license is separate from provider credentials; do not send passwords or production access tokens.
The live example uses a browser-visible deployment key restricted to this package and approved origins. It does not collect license keys or visitor credentials.