sclasen / swfsm

[golang] simple workflow finite state machines
MIT License
53 stars 14 forks source link

Create an FSMContext.FailWorkflow() convenience method #155

Closed ryanwalls closed 8 years ago

ryanwalls commented 8 years ago

FSMContext already has a very similar method CancelWorkflow.

I could send a PR, just wasn't sure what state the FSM should transition to. Should I add a new constant for FailedState similar to CanceledState and transition to that?

sclasen commented 8 years ago

Yep, that sounds reasonable for a PR.