|
NAMEClass::Workflow::Transition::Deterministic - A transition which knows which state it leads to. SYNOPSIS package MyTransition;
use Moose;
with qw/
Class::Workflow::Transition
Class::Workflow::Deterministic
/;
sub apply_body { # instead of 'sub apply'
# body
}
# this may be changed to the following form in the future:
augment apply => sub {
# body
};
DESCRIPTIONThis role provides a base role for transitions which know their target state. It overrides "apply" with a default implementation that will derive an instance for you, setting "state" automatically, appending the return value from "apply_body" to that list. You should consume this role unless you need to determine the target state dynamically (probably not a good idea). FIELDS
METHODS
REQUIRED METHODS
|