There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Daje::Workflow - It's a simple workflow engine

SYNOPSIS

use Daje::Workflow;
use Daje::Workflow::Loader;
use Daje::Workflow::Database;
use Daje::Workflow::Database::Model;

my $context->{context}->{some_key_needed_by_some_activity}="";

my $context->{context}-{workflow}->{workflow} = "Workflow name";

my $context->{context}-{workflow}->{activity} = "Name of activity";

my $context->{context}-{workflow}->{workflow_pkey} = "If not 0 workflow will be loaded";

If workflow_pkey == 0 but connector_fkey > 0 and connector != "" connector data will
be used to try to load the workflow. If no workflow is found a new will be created.

my $context->{context}-{workflow}->{connector_fkey} = Number;

my $context->{context}-{workflow}->{connector} = "If not 0 workflow will be loaded";


my $workflow = Daje::Workflow->new(
     pg            => $pg,
     loader        => $loader->loader,
     workflow_name => 'generate',
     workflow_pkey => '12',
     context       => $context,
);

$workflow->process("save_perl_file");
say $workflow->error->error if $workflow->error->has_error() ;

DESCRIPTION

Daje::Workflow is

REQUIRES

Daje::Workflow::Database::Model

Daje::Workflow::Database

Daje::Workflow::Loader

Daje::Workflow::Errors::Error

Daje::Workflow::Activities

Daje::Workflow::Checks

Daje::Workflow::Database::Model

Daje::Workflow::Database

Daje::Workflow::Loader

v5.40

Mojo::Base

METHODS

process($self,

process($self,();

save_workflow($self,

save_workflow($self,();

AUTHOR

janeskil1525 <janeskil1525@gmail.com>

LICENSE

Copyright (C) janeskil1525.

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