The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Method::Workflow::Meta - Meta class for Method::Workflow.

DESCRIPTION

The class that holds meta-data for items with workflows, and also for workflow elements.

EXPORTED FUNCTIONS

DEFAULT

Nothing is exported by default

ON REQUEST

$meta = meta_for( $item );

Will return the meta class for the specified item (autovivifying)

METHODS

$meta->add_item( $item )

Add an item to the meta data.

@list = $meta->items()

Get a list of all items in the meta data.

@list = $meta->pull_items( $type )

Remove all items of $type from the items stored in meta and return them. If no type is given then all numeric/string (non-ref) items will be pulled.

$list_ref = $meta->items_ref()

Get a reference to the items hash ( type => \@list ).

$value = $meta->property( $name )
$value = $meta->prop( $name )

Get the value of a named property.

$meta->prop( $name, $value )
$meta->property( $name, $value )

Set the value of a named property.

%props = $meta->properties()
$props_ref = $meta->properties_ref()

Get a ref to the properties hash.

$hashref = $meta->pre_run_hooks_ref()

Get the hashref of pre-run hooks.

    { name => $sub, ... }
$hashref = $meta->post_run_hooks_ref()

Get the hashref of post-run hooks.

    { name => $sub, ... }
@hook_subs = $meta->pre_run_hooks( %mixin )

Used to add hooks ( name => $sub ), or retrieve the hooks (only subs are returned).

@hook_subs = $meta->post_run_hooks( %mixin )

Used to add hooks ( name => $sub ), or retrieve the hooks (only subs are returned).

FENNEC PROJECT

This module is part of the Fennec project. See Fennec for more details. Fennec is a project to develop an extendable and powerful testing framework. Together the tools that make up the Fennec framework provide a potent testing environment.

The tools provided by Fennec are also useful on their own. Sometimes a tool created for Fennec is useful outside the greator framework. Such tools are turned into their own projects. This is one such project.

Fennec - The core framework

The primary Fennec project that ties them all together.

AUTHORS

Chad Granum exodist7@gmail.com

COPYRIGHT

Copyright (C) 2010 Chad Granum

Method-Workflow is free software; Standard perl licence.

Method-Workflow is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.