This is an example module that extends State Flow.
More information can be found at http://drupal.org/project/state_machine