Skip to content
Loamis build console Read only

taskPlan

READ ONLY: generated from the specification

3 states, 7 events, 21 rules. Initial state: empty.

Transition graph

emptyrunningcomplete

Double outline: the initial state. Dashed line and ◆: the rule has a guard.

Transitions, as a list

  1. running, on taskStarted, to running, guarded: ctx.active == 0 and ctx.done + ctx.failed + ctx.skipped + ctx.active < ctx.total
  2. running, on taskDone, to complete, guarded: ctx.active > 0 and ctx.done + ctx.failed + ctx.skipped + 1 == ctx.total
  3. running, on taskDone, to running, guarded: ctx.active > 0
  4. running, on taskFailed, to complete, guarded: ctx.active > 0 and ctx.done + ctx.failed + ctx.skipped + 1 == ctx.total
  5. running, on taskFailed, to running, guarded: ctx.active > 0
  6. running, on taskSkipped, to complete, guarded: ctx.done + ctx.failed + ctx.skipped + ctx.active < ctx.total and ctx.done + ctx.failed + ctx.skipped + 1 == ctx.total
  7. running, on taskSkipped, to running, guarded: ctx.done + ctx.failed + ctx.skipped + ctx.active < ctx.total
  8. empty, on toggle, to empty, guarded: ctx.collapsed == true
  9. empty, on toggle, to empty, guarded: ctx.collapsed == false
  10. empty, on planFinished, to empty
  11. running, on toggle, to running, guarded: ctx.collapsed == true
  12. running, on toggle, to running, guarded: ctx.collapsed == false
  13. running, on planFinished, to running
  14. complete, on toggle, to complete, guarded: ctx.collapsed == true
  15. complete, on toggle, to complete, guarded: ctx.collapsed == false
  16. complete, on planFinished, to complete
  17. empty, on planStreaming, to running, guarded: event.total > 0
  18. empty, on planStreaming, to empty, guarded: event.total == 0
  19. running, on planStreaming, to running, guarded: event.total >= ctx.total
  20. complete, on planStreaming, to running, guarded: event.total > ctx.total
  21. complete, on planStreaming, to complete, guarded: event.total == ctx.total

Live runner

Current state: empty

a whole number; the machine samples 0, 1, 2, 3

Context

total
0
done
0
failed
0
skipped
0
active
0
collapsed
false
streaming
false

View flags now

done
0
total
0
settled
0
failed
0
active
0
pending
0
complete
false
hasFailures
false
showProgress
false
ariaExpanded
true
showTasks
true
ariaBusy
false
toggleEnabled
true
defaultFocus
"toggle"

Effects emitted

None.

Trace

No event sent yet.

States

empty

initial

View flags

done
0
total
0
settled
0
failed
0
active
0
pending
0
complete
false
hasFailures
false
showProgress
false
ariaExpanded
true
showTasks
true
ariaBusy
false
toggleEnabled
true
defaultFocus
"toggle"

Rules that leave it

  1. toggle to empty when ctx.collapsed == true ; sets collapsed := false
  2. toggle to empty when ctx.collapsed == false ; sets collapsed := true
  3. planFinished to empty ; sets streaming := false
  4. planStreaming to running when event.total > 0 ; sets total := event.total, streaming := true
  5. planStreaming to empty when event.total == 0 ; sets streaming := true

running

View flags

done
0
total
0
settled
0
failed
0
active
0
pending
0
complete
false
hasFailures
false
showProgress
true
ariaExpanded
true
showTasks
true
ariaBusy
false
toggleEnabled
true
defaultFocus
"toggle"

Rules that leave it

  1. taskStarted to running when ctx.active == 0 and ctx.done + ctx.failed + ctx.skipped + ctx.active < ctx.total ; sets active += 1
  2. taskDone to complete when ctx.active > 0 and ctx.done + ctx.failed + ctx.skipped + 1 == ctx.total ; sets done += 1, active -= 1 ; emits planCompleted(ctx.done, ctx.total)
  3. taskDone to running when ctx.active > 0 ; sets done += 1, active -= 1
  4. taskFailed to complete when ctx.active > 0 and ctx.done + ctx.failed + ctx.skipped + 1 == ctx.total ; sets failed += 1, active -= 1 ; emits planCompleted(ctx.done, ctx.total)
  5. taskFailed to running when ctx.active > 0 ; sets failed += 1, active -= 1
  6. taskSkipped to complete when ctx.done + ctx.failed + ctx.skipped + ctx.active < ctx.total and ctx.done + ctx.failed + ctx.skipped + 1 == ctx.total ; sets skipped += 1 ; emits planCompleted(ctx.done, ctx.total)
  7. taskSkipped to running when ctx.done + ctx.failed + ctx.skipped + ctx.active < ctx.total ; sets skipped += 1
  8. toggle to running when ctx.collapsed == true ; sets collapsed := false
  9. toggle to running when ctx.collapsed == false ; sets collapsed := true
  10. planFinished to running ; sets streaming := false
  11. planStreaming to running when event.total >= ctx.total ; sets total := event.total, streaming := true

complete

View flags

done
0
total
0
settled
0
failed
0
active
0
pending
0
complete
true
hasFailures
false
showProgress
true
ariaExpanded
true
showTasks
true
ariaBusy
false
toggleEnabled
true
defaultFocus
"toggle"

Rules that leave it

  1. toggle to complete when ctx.collapsed == true ; sets collapsed := false
  2. toggle to complete when ctx.collapsed == false ; sets collapsed := true
  3. planFinished to complete ; sets streaming := false
  4. planStreaming to running when event.total > ctx.total ; sets total := event.total, streaming := true
  5. planStreaming to complete when event.total == ctx.total ; sets streaming := true
All machines