The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Solstice::State::Transition - Representation of the transition between Solstice::State objects.

SYNOPSIS

use Solstice::State::Transition;

my $transition = new Solstice::State::Transition( $action, $targetState, $pageflow, {update => $update, revert => $revert, freshen => $freshen, commit => $commit, validate => $validate});

$pageFlow->addTransition($transition);

Methods

new ($action, $targetState, $onBack, $pageflow, {update => $update, revert => $revert, freshen => $freshen, commit => $commit, validate => $validate})

Creates a new Solstice::State::Transition object.

$action - the keyword on which to transition. $targetState - the name of the state to transition to. $onBack - the error message for using the back button (undef if allowed). $pageflow - global transtions can specify what page flow they will start in $update - whether to update on transition. $revert - whether to revert on transition. $freshen - whether to freshen data on transition. $commit - whether to commit data on transition. $validate - whether to validate on transition.

returns - a new state transition object.

getName()

returns - the name of the transition (the action)

getTargetState()

returns - the name of the state to transition to.

getBackErrorMessage()

returns - the error message for using the back button (undef if allowed).

requiresUpdate()

returns - whether the transition requires an update.

requiresRevert()

returns - whether the transition requires a revert.

requiresFresh()

returns - whether the transition requires a freshen.

requiresCommit()

returns - whether the transition requires a commit.

requiresValidation()

returns - whether the transition requires a validation.

COPYRIGHT

Copyright 1998-2007 Office of Learning Technologies, University of Washington

Licensed under the Educational Community License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.opensource.org/licenses/ecl1.php

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.