/go-workflow

Primary LanguageGoApache License 2.0Apache-2.0

go-workflow

deprecated

Simple control flow library to setup a series of steps to execute.

Example

w := workflow.New()
w.OnFailure = workflow.InteractiveFailure
steps := []*workflow.Step{
	&workflow.Step{
		Label: "one",
		Run:   stepOne,
	},
	&workflow.Step{
		Label: "two",
		Run:   stepTwo,
		},
	}
}
w.AddSteps(steps)
w.Run()