Class::Workflow::State::TransitionSet - A state that implements transition meta data using Set::Object.
package MyState; with "Class::Workflow::State::TransitionSet";
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 and clear_transitions as well.
transitions
has_transition
has_transitions
add_transitions
remove_transitions
clear_transitions
Transition storage is implemented internally with Set::Object.
Unlike Class::Workflow::State::TransitionHash this role does not require transitions to respond to the name method, but as a consequence you must refer to the transitions by value.
name
Note that you may construct like this:
Class->new( transitions => \@transitions, );
and the transition set will be coerced from that array reference.
See Class::Workflow::State
To install Class::Workflow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Workflow
CPAN shell
perl -MCPAN -e shell install Class::Workflow
For more information on module installation, please visit the detailed CPAN module installation guide.