Workflow::Context man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Workflow::Context(3)  User Contributed Perl Documentation Workflow::Context(3)

NAME
       Workflow::Context - Data blackboard for Workflows, Actions, Conditions
       and Validators

VERSION
       This documentation describes version 1.05 of this package

SYNOPSIS
	# Create your own context and merge it with one that may already be
	# in a workflow

	my $context = Workflow::Context->new();
	$context->param( foo => 'bar' );
	$context->param( current_user => User->fetch( 'foo@bar.com' ) );
	$wf->context( $context );

	# In a Condition get the 'current_user' back out of the workflow's context

	sub evaluate {
	    my ( $self, $wf ) = @_;
	    my $current_user = $wf->context->param( 'current_user' );
	    ...
	}

	# Set values directly into a workflow's context

	$wf->context->param( foo => 'bar' );
	$wf->context->param( news => My::News->fetch_where( 'date = ?', DateTime->now ) );

DESCRIPTION
       Holds information to pass between your application and a Workflow,
       including its Actions, Conditions and Validators.

OBJECT METHODS
       merge( $other_context )

       Merges the values from $other_context into this object. If there are
       duplicate keys in this object and $other_context, $other_context wins.

SEE ALSO
       Workflow

COPYRIGHT
       Copyright (c) 2003-2006 Chris Winters. All rights reserved.

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

AUTHORS
       Jonas B. Nielsen (jonasbn) <jonasbn@cpan.org>, current maintainer.

       Chris Winters <chris@cwinters.com>, original author.

perl v5.14.1			  2011-07-21		  Workflow::Context(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net