Solstice::State::FlowTransition - Representation of the transition to a new page flow.


Solstice documentation Contained in the Solstice distribution.

Index


Code Index:

NAME

Top

Solstice::State::FlowTransition - Representation of the transition to a new page flow.

SYNOPSIS

Top

use Solstice::State::FlowTransition;

my $transition = new Solstice::State::FlowTransition($action, $application, $name, $onBack, {update => $update, revert => $revert, freshen => $freshen, validate => $validate, commit => $commit});

$pageFlow->addTransition($transition);

Methods

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

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

$action - the keyword on which to transition. $appName - the name of the application that owns the new flow. $name - the name of the flow to transition to. $onBack - the error message if the back button is used (undef if allowed). $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 flow transition object.

getApplicationName()

Returns the name of the application that owns the flow that this transition goes to.

getPageFlowName()

Returns the name of the page flow this transitions to.

COPYRIGHT

Top


Solstice documentation Contained in the Solstice distribution.
package Solstice::State::FlowTransition;


use 5.006_000;
use strict;
use warnings;

use base qw(Solstice::State::Transition);


sub new {
    my ($classname, $action, $app_name, $flow_name,
        $on_back, $operations) = @_;

    my $self = $classname->SUPER::new($action, undef, $on_back,undef, $operations);
    $self->{_appName} = $app_name;
    $self->{_flowName} = $flow_name;

    return $self;
}


sub getApplicationName {
    my ($self) = @_;
    return $self->{_appName};
}

sub getPageFlowName {
    my ($self) = @_;
    return $self->{_flowName};
}

1;