Class::Workflow::State::TransitionSet - A state that implements transition meta data using Set::Object.



NAME

Class::Workflow::State::TransitionSet - A state that implements transition meta data using Set::Object.


SYNOPSIS

        package MyState;
        with "Class::Workflow::State::TransitionSet";


DESCRIPTION

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 and clear_transitions as well.

Transition storage is implemented internally with the Set::Object manpage.

Unlike the Class::Workflow::State::TransitionHash manpage this role does not require transitions to respond to the name method, but as a consequence you must refer to the transitions by value.

Note that you may construct like this:

        Class->new(
                transitions => \@transitions,
        );

and the transition set will be coerced from that array reference.


METHODS

See the Class::Workflow::State manpage

has_transition
has_transitions
transitions
add_transitions
transition_set
 Class::Workflow::State::TransitionSet - A state that implements transition meta data using Set::Object.