| Class-Workflow documentation | Contained in the Class-Workflow distribution. |
Class::Workflow::Instance::Simple - A Workflow instance objects to work with the other ::Simple classes.
use Class::Workflow::Instance::Simple; my $i = Class::Workflow::Instance::Simple->new; my $new_i = $transition->apply( $i );
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.
Does what it says.
| Class-Workflow documentation | Contained in the Class-Workflow distribution. |
#!/usr/bin/perl package Class::Workflow::Instance::Simple; use Moose; with "Class::Workflow::Instance"; has error => ( isa => "Undef|Str|Object", is => "ro", ); __PACKAGE__; __END__