28 Aug 2009 15:03:01 UTC
- Distribution: Class-Workflow
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (647 / 14 / 1)
- KwaliteeBus factor: 3
- % Coverage
- License: unknown
- Activity24 month
- Download (31.08KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionNUFFIN יובל קוג'מן (Yuval Kogman)
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
applymethod, 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.
Module Install Instructions
To install Class::Workflow, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Class::Workflow
For more information on module installation, please visit the detailed CPAN module installation guide.