28 Aug 2009 15:03:01 UTC
- Distribution: Class-Workflow
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (642 / 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::State - An instance's position in the workflow.
package MyState; use Moose; with 'Class::Workflow::State';
This is an abstract role for state implementations. In order ot work properly all states
Since this method is probably not going to be used an empty version is supplied. You may override it, but be sure to return the instance (either the one you got, or if you applied cascaded transitions, the one that you made).
Look in Class::Workflow::State::AcceptHooks for an example of how this can be used.
Whether or not the state contains the transition object (or objects). You can add more behaviors but it should always work for transition objects.
This method should return the list of all transition objects. You may add more methods that return the transitions in another organization, but make sure that this method called with no arguments will always return the transitions. When this method is called with arguments it should set the transition list to the new list, or die if the operation is not supported.
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.