Internal
internal/core/lifecycle
Package lifecycle defines allowed task state transitions.
import "github.com/nilstate/scafld/v2/internal/core/lifecycle"
Package lifecycle defines allowed task state transitions.
Constants
Source: internal/core/lifecycle/state.go:8
const (
// Draft is the editable pre-approval state.
Draft State = "draft"
// Approved is the state after approval but before execution.
Approved State = "approved"
// Active is the execution state.
Active State = "active"
// Blocked is the state after execution or review finds blocking work.
Blocked State = "blocked"
// Review is the adversarial review gate state.
Review State = "review"
// Completed is the terminal successful state.
Completed State = "completed"
// Failed is the terminal unsuccessful state.
Failed State = "failed"
// Cancelled is the terminal abandoned state.
Cancelled State = "cancelled"
)Functions
func CanTransition(from State, to State) bool
Source: internal/core/lifecycle/state.go:26
CanTransition reports whether the lifecycle transition is allowed.
Types
type State
Source: internal/core/lifecycle/state.go:4
State names a lifecycle state in the task workflow.
type State string