Justin Hunter > Class-Workflow-0.11_01 > Class::Workflow::Transition::Strict

Download:
Class-Workflow-0.11_01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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.

syntax highlighting: