NAME
Class::Workflow::State::TransitionHash - Implement transition metadata with a hash.
SYNOPSIS
package MyState;
use Moose;
with qw/Class::Workflow::State::TransitionHash/;
DESCRIPTION
This is a concrete role that implements transitions, has_transition and has_transitions as required by Class::Workflow::State, and adds add_transitions, remove_transitions, clear_transitions , get_transitions, and get_transition as well.
Transition storage is implemented internally with Set::Object.
This is an additional layer over Class::Workflow::State::TransitionSet that requires all transitions to respond to the name method, but as a bonus allows you to refer to your transitions by name or by value.
METHODS
See Class::Workflow::State::TransitionSet and Class::Workflow::State.