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::TRANSITION (3)

.ds Aq ’

NAME

Class::Workflow::Transition - A function over an instance.

CONTENTS

SYNOPSIS



        package MyTransition;
        use Moose;
        with Class::Workflow::Transition;



DESCRIPTION

This is the base role for transition implementations.

<B>everyB> transition object must comply to it’s interface, and furthermore must also use the derive_and_accept_instance method to return a derived instance at the end of the operation.

METHODS

derive_and_accept_instance $instance, \%attrs, @args This method calls $instance->derive with the attrs, and then calls the instance accept_instance on the new instance’s state.

%attrs <B>mustB> contain the key state, which should do the role Class::Workflow::State.

@args are passed (along with the derived instance) to accept_instance in Class::Workflow::State.

REQUIRED METHODS

apply $insatnce, @args This method accepts a Class::Workflow::Instance as it’s first argument, and is expected to call $self->derive_and_accept_instance( $instance, \%attrs, @args ), with %attrs containing the state that the instance is being transferred to (it doesn’t have to be different than the current state).
Search for    or go to Top of page |  Section 3 |  Main Index


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

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