| Class::Workflow::State::TransitionHash - Implement transition metadata with a hash. |
Class::Workflow::State::TransitionHash - Implement transition metadata with a hash.
package MyState;
use Moose;
with qw/Class::Workflow::State::TransitionHash/;
This is a concrete role that implements transitions, has_transition and
has_transitions as required by the Class::Workflow::State manpage, and adds
add_transitions, remove_transitions, clear_transitions ,
get_transitions, and get_transition as well.
Transition storage is implemented internally with the Set::Object manpage.
This is an additional layer over the Class::Workflow::State::TransitionSet manpage 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.
See the Class::Workflow::State::TransitionSet manpage and the Class::Workflow::State manpage.
| Class::Workflow::State::TransitionHash - Implement transition metadata with a hash. |