GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CLASS::WORKFLOW::STATE (3)

.ds Aq ’

NAME

Class::Workflow::State - An instance’s position in the workflow.

CONTENTS

SYNOPSIS



        package MyState;
        use Moose;

        with Class::Workflow::State;



DESCRIPTION

This is an abstract role for state implementations. In order ot work properly all states

METHODS

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

REQUIRED METHODS

has_transition
has_transitions Whether or not the state contains the transition <B>objectB> (or objects). You can add more behaviors but it should <B>alwaysB> work for transition objects.
transitions 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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CLASS::WORKFLOW::STATE (3) 2009-01-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.