Manual Reference Pages - CLASS::WORKFLOW::TRANSITION (3)
Class::Workflow::Transition - A function over an instance.
This is the base role for transition implementations.
<B>everyB> transition object must comply to its interface, and furthermore must
also use the derive_and_accept_instance method to return a derived instance
at the end of the operation.
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 instances state.
%attrs <B>mustB> contain the key state, which should do the role
@args are passed (along with the derived instance) to
accept_instance in Class::Workflow::State.
apply $insatnce, @args
This method accepts a Class::Workflow::Instance as its 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
doesnt have to be different than the current state).
|perl v5.20.3 ||CLASS::WORKFLOW::TRANSITION (3) ||2009-01-10 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.