geekq / workflow

Ruby finite-state-machine-inspired API for modeling workflow
MIT License
1.75k stars 207 forks source link

Custom handling when an unavailable transition is called #148

Closed terrcin closed 5 years ago

terrcin commented 9 years ago

I'm looking to use workflow on an existing project and don't want state transitions to throw an error if the workflow is in an unexpected state and the transition is unavailable, I instead want to simply log what occurred so it can be fixed. I've created this feature so I don't have to put in exception handling with each state transition.