Our state of the art Gantt chart


Post by daniel.taylor »

We have incorporated Bryntum Scheduler Pro / Gantt into our platform.
After integrating it, we’ve realised the CPM engine appears to be missing a key behaviour we need.

Specifically:

For tasks that are not yet complete, we need the CPM engine to take today’s date as the start point for the remaining work.

The remaining duration should be calculated as (1 – percentDone) × original duration.

The new finish date should then be scheduled automatically as today + remaining duration (respecting calendars, dependencies and constraints), rather than keeping the original planned finish.

In other words, we want incomplete tasks to be automatically re-anchored from the current date, with their finish recalculated based on the remaining work, without having to edit end dates manually.

Could you please confirm whether the CPM engine already supports this type of progress-based rescheduling?
If it does not, is there an officially supported way (API / hook / recommended override) to implement it ourselves?


Post by arcady »

Hello,

The Engine does not support that logic at the moment. We have a related feature request but we haven't started on it yet: https://github.com/bryntum/support/issues/9365

Implementing this would require overriding TaskModel calculateEndDatePure, calculateDurationPure methods.
Also TaskModel has code iterating working time ( forEachAvailabilityInterval method). I would inject some logic there to skip the task actual date till current date period.

Best regards,
Arcady


Post by arcady »

P.S. Sorry in the last sentence I meant skip working time from the task actual date till current date minus remaining duration of course.


Post Reply