יובל קוג'מן (Yuval Kogman) > Class-Workflow-0.11 > Class::Workflow::Instance::Simple

Download:
Class-Workflow-0.11.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Class-Workflow-0.11_01

NAME ^

Class::Workflow::Instance::Simple - A Workflow instance objects to work with the other ::Simple classes.

SYNOPSIS ^

        use Class::Workflow::Instance::Simple;

        my $i = Class::Workflow::Instance::Simple->new;

        my $new_i = $transition->apply( $i );

DESCRIPTION ^

This method adds an error field to Class::Workflow::Instance.

In the event that you want to make errors non-fatal, but instead encapsulate errors in the workflow using their own states, error just becomes a regular field. Class::Workflow::Transition::Validate::Simple provides a simple means to add validation, with the optional notion of an error_state for transitions.

FIELDS ^

error

Does what it says.

See Class::Workflow::Transition::Validate::Simple.

syntax highlighting: