Andreas 'ac0v' Specht > Hyper > Hyper::Workflow::Default

Download:
Hyper-v0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: v0.02   Source  

NAME ^

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

VERSION ^

This document describes Hyper::Workflow::Default 0.02

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 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 $

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.

syntax highlighting: