resource jill "Jill"
resource joe "Joe"
resource jack "Jack"

task plan "Plan Work" {
  start ${projectstart}
  task plan_a "Plan A" {
    effort 2w
    allocate joe
  }
  task plan_b "Plan B" {
    effort 1.5w
    allocate jill
  }
  task plan_c "Plan C" {
    depends !plan_a
    allocate jill
    effort 1w
  }
}
task execute "Execute Work" {
  depends !plan
  task ex1 "Step 1" {
    allocate jill
    effort 4w
  }
  task ex2 "Step 2" {
    task ex2_1 "Step 2.1" {
      allocate joe
      effort 2d
    }
    task ex2_2 "Step 2.2" {
      depends !!ex1
      effort 2w
      allocate jack, jill
      journalentry %{${projectstart} +2d} "Red" {
        alert red
      }
    }
  }
  task ms1 "Milestone 1" {
    depends !ex2
  }
  task ex3 "Step 3" {
    depends execute.ex2.ex2_1
    effort 12d
    allocate jack
  }
  task ex4 "Step 4" {
    depends !ex1
    effort 2d
    allocate joe, jack
  }
}
task check "Check Work" {
  depends !execute
  allocate jill
  effort 1w
}

