Event::ExecFlow

Event::ExecFlow is a high level API for event-based execution flow control.
Download

Event::ExecFlow Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jrn Reder
  • Publisher web site:
  • http://search.cpan.org/~jred/

Event::ExecFlow Tags


Event::ExecFlow Description

Event::ExecFlow is a high level API for event-based execution flow control. Event::ExecFlow is a high level API for event-based execution flow control.ABSTRACT Event::ExecFlow provides a ligh level API for defining complex flow controls with asynchronous execution of external programs.SYNOPSIS use Event::ExecFlow; my $job = Event::ExecFlow::Job::Group->new ( jobs => /; #-- or simply write this: #-- progress_parser => qr//, }, ), Event::ExecFlow::Job::Code->new ( name => "checks", title => "Do some checks", depends_on => , code => sub { my ($job) = @_; my $transcode = $job->get_group->get_job_by_name("transcode"); if ( $transcode->get_output !~ /.../ ) { $job->set_error_message("XY check failed"); } #-- this could be done easier as a post_callback added to #-- the "transcode" job above, but it's nevertheless a good #-- example for the 'Code' job type and shows how jobs can #-- interfere with each other. }, ), Event::ExecFlow::Job::Command->new ( title => "Muxing OGG file", depends_on => , command => "ogmmerge ...", no_progress => 1, ), ], ); #-- this inherits from Event::ExecFlow::Frontend my $frontend = Video::DVDRip::GUI::ExecFlow->new(...); $frontend->start_job($job);Event::ExecFlow offers a high level API to declare jobs, which mainly execute external commands, parse their output to get progress or other status information, triggers actions when the command has been finished etc. Such jobs can be chained together in a recursive fashion to fulfill rather complex tasks which consist of many jobs.Additionally it defines an extensible API for communication with the frontend application, which may be a written using Gtk2, Tk or Qt or is a simple text console program.In case of Gtk2 a custom widget for displaying an Event::ExecFlow job plan, including progress updates, is shipped with the Gtk2::Ex::FormFactory package.Requirements:· Perl· AnyEvent >= 0.04· Locale::TextDomain· Test::More Requirements: · Perl · AnyEvent >= 0.04 · Locale::TextDomain · Test::More


Event::ExecFlow Related Software