NAME

Hyper::Workflow::Default - Default Workflow for Hyper

VERSION

This document describes Hyper::Workflow::Default 0.01

SYNOPSIS

use Hyper::Workflow::Default;
my $workflow = Hyper::Workflow::Default->new();
$workflow->work();

DESCRIPTION

ATTRIBUTES

service :get
usecase :get
viewstate :get
application :get
application_class :name :default<()>

Default is configurable via Hyper::Singleton::Context or points to Hyper::Application::Default.

[Class]
application=Hyper::Application::Minimal
_shown_controls

Private attribute needed for _set_from_cgi in Hyper::Control::Base

_current_shown_controls

Private attribute needed for _set_from_cgi in Hyper::Control::Base

SUBROUTINES/METHODS

START

Set application class with data from config attribute if it's false.

work

Start a the workflow.

  1. Create new cache for persistence or get existant cache. The CGI param uuid is used as cache id.

  2. Get service from cgi param s(ervice) or from the cache if existant.

  3. Get usecase from cgi param u(secase) or from the cache if existant.

  4. Start a hyper workflow (Default, Single Validation, Group Validation)

set_show_state

my $base_control = Hyper::Control::Base::BPushButton->new();
$workflow->set_show_state($base_control);

Sets show state of $base_control in the current workflow viewstate. This is used to do Hyper::Control::Base::_set_from_cgi on thaw only if this element was shown in an viestate (see get_show_state).

get_show_state

my $base_control = Hyper::Control::Base::BPushButton->new();
my $was_shown    = $workflow->get_show_state($base_control);

Indicates if a Base Control was shown in current viewstate.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

Use Hyper::Singleton::Context for your configuration.

[Global]
namespace=YourNamespace

[Class]
application=Hyper.Application.Any

DEPENDENCIES

INCOMPATIBILITIES

BUGS AND LIMITATIONS

RCS INFORMATIONS

Last changed by

$Author: ac0v $

Id

$Id: Default.pm 317 2008-02-16 01:52:33Z ac0v $

Revision

$Revision: 317 $

Date

$Date: 2008-02-16 02:52:33 +0100 (Sat, 16 Feb 2008) $

HeadURL

$HeadURL: file:///srv/cluster/svn/repos/Hyper/Hyper/trunk/lib/Hyper/Workflow/Default.pm $

AUTHOR

Andreas Specht <ACID@cpan.org>

LICENSE AND COPYRIGHT

Copyright (c) 2007, Andreas Specht <ACID@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.