onAutoScheduleCircularLink
info
This functionality is available in the PRO edition only.
Description
Fires if some dependency loops were found during auto scheduling
onAutoScheduleCircularLink: (groups: any[]) => void;
Parameters
groups- (required) array - an array of dependency loops found in gantt
Example
gantt.attachEvent("onAutoScheduleCircularLink",function(groups){
// any custom logic here
});
Related samples
Details
note
The method requires the auto_scheduling plugin to be activated.
Tasks aren't modified when this event fires.
The groups parameter presents an array of dependency loops found in gantt. Each element of the array is a group of tasks and links which make a loop.
[
{
tasks: [//ids of tasks connected in a loop],
links: [//ids of links connected in a loop]
},
{
tasks: [...],
links: [...]
}
]
Have a look at the example below:
- The Task #3 has the id = 10
- The Task #4.1 has the id = 12
- The Link from the end of Task #3 to the start of Task #4 has the id = 1
- The Link from the end of Task #4.1 to the start of Task #3 has the id = 2
The groups parameter will contain the following group object:
[
{
tasks: ["10", "12"],
links: ["1", "2"]
}
]
Related API
- auto_scheduling
- auto_scheduling_descendant_links
- auto_scheduling_initial
- auto_scheduling_move_projects
- auto_scheduling_project_constraint
- auto_scheduling_strict
- auto_scheduling_use_progress
- findCycles
- isCircularLink
- onAfterAutoSchedule
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
Related Guides
Change log
- added in version 4.1