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.
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.