Shorthand for the meta state machine
Shorthand for one of the states
Implement a method that returns the singleton
Implement a method that returns the singleton
The column in the database that stores the current state
the primary key for the database
get the primary key field
get the primary key field
Process an event
Get the current state
This item has reached a terminating state.
This item has reached a terminating state. This method will remove the item from the database. Override this method (please call super at the end of your method) to do any cleanup.
The column in the database that stores the next time an event should go off
This method is called on a transition from one state to another.
This method is called on a transition from one state to another. Override this method to perform an action. Please call super to actually change the state and save the instance
This trait manages state/workflow transition