The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

BPM::Engine::Store::ResultSet::Package - Package DBIC resultset

VERSION

0.01

SYNOPSIS

    my $rs = $schema->resultset('Package');
    my $package = $rs->create_from_xpdl('/path/to/workflows.xpdl');

DESCRIPTION

This module extends DBIx::Class::ResultSet for the Package table.

METHODS

create_from_xpdl

    my $package = $rs->create_from_xpdl($input);

Takes xml input and returns a newly created Package row. Input can be a file, URL, string or io stream; see xpdl_hash() in BPM::Engine::Util::XPDL for details.

EXCEPTIONS

If the XML is found to be inconsistent, create_from_xpdl() just dies with an error message and nothing is inserted in the database.

SEE ALSO

BPM::Engine::Store::Result::Package

AUTHOR

Peter de Vos, <sitetech@cpan.org>

COPYRIGHT AND LICENSE

Copyright (c) 2010, 2011 Peter de Vos <sitetech@cpan.org>.

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