The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Class::Workflow::Transition::Strict - Verify that the transition is in the instance's current state before applying.

SYNOPSIS

        package MyTransition;
        use Moose;

        with qw/
                Class::Workflow::Transition
                Class::Workflow::Transition::Strict
        /;

DESCRIPTION

This mixin role provides a "before" in Moose wrapper around the apply method, that verifies that the transition is present in the current state of the instance.

Normally you use the state introspection methods to retrieve transition objects from the state of the instance directly, but this role adds an extra level of protection.