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


Back to Top


NAME

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

Back to Top


VERSION

This document describes Hyper::Workflow::Default 0.02

Back to Top


SYNOPSIS

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

Back to Top


DESCRIPTION

Back to Top


ATTRIBUTES

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

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

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

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

_current_shown_controls

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

Back to Top


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 the Hyper::Control::Base manpage::_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.

Back to Top


DIAGNOSTICS

Back to Top


CONFIGURATION AND ENVIRONMENT

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

    [Global]
    namespace=YourNamespace
    [Class]
    application=Hyper.Application.Any

Back to Top


DEPENDENCIES

Back to Top


INCOMPATIBILITIES

Back to Top


BUGS AND LIMITATIONS

Back to Top


RCS INFORMATIONS

Last changed by

$Author: ac0v $

Id

$Id: Default.pm 528 2009-01-11 05:43:02Z ac0v $

Revision

$Revision: 528 $

Date

$Date: 2009-01-11 06:43:02 +0100 (So, 11 Jan 2009) $

HeadURL

$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Workflow/Default.pm $

Back to Top


AUTHOR

Andreas Specht <ACID@cpan.org>

Back to Top


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.

Back to Top

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