There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

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.