geekq / workflow

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

Saving transition time in the state meta_information #161

Closed ashrocket closed 2 years ago

ashrocket commented 9 years ago

Is state meta mutable? I don't think so, since there is only 1 column added to use workflow_state. Is there a best practice for recording meta_data about transitions dynamically?

ashrocket commented 9 years ago

Also, what would be the best pattern to set up a state timeout. Meaning, that if an object stays in a state for too long, it should transition to reset, or idle state.