precedes <task> [, <task> ... ]

precedes <task> [, <task> ... ]
Description

Specifies that the tasks with the specified IDs cannot start before the task has been finished. If multiple IDs are specified, they must be separated by commas. IDs must be either global or relative. A relative ID starts with a number of '!'. Each '!' moves the scope to the parent task. Global IDs do not contain '!', but have IDs separated by dots.

By using the 'precedes' attribute, the scheduling policy is automatically set to alap. If both depends and precedes are used within a task, the last policy counts.

AttributesNameTypeDescription
taskID 
Optional Attributesgapduration, gaplength
Contexttask,
InheritableNoScenario Spec.No
See alsodepends, scheduling

project p "P" "1.0" 2003-11-09 - 2003-12-24

task foo1 "foo1" {
  task foo2 "foo2" {
    start 2003-12-04
    milestone 
  }
  task foo3 "foo3" { 
    precedes !foo2
    length 1d 
  }
}
task bar "bar" {
  precedes foo1.foo2
  length 2d
}