Class::Workflow::Transition::Strict - Verify that the transition is in the instance's current state before applying.
package MyTransition; use Moose; with qw/ Class::Workflow::Transition Class::Workflow::Transition::Strict /;
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.
apply
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.
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.