me
my $config = Daje::Workflow::Config->new(
path => $self->config
)->load("users.json");
my $pg = Mojo::Pg->new()->dsn(
$config->param('dsn')
# "dbi:Pg:dbname=Wor
w::Config;
use v5.40;
use Mojo::Base -base;
# NAME
# ====
#
# Daje::Workflow::Config - Loads the JSON based configs and put them in a hash
#
# SYNOPSIS
# ========
#
# use Daje::Workflow::Config;
#
nfig->param($parameter);
#
# DESCRIPTION
# ===========
#
# Daje::Config is loading workflows from JSON files in a set folder
#
# LICENSE
# =======
#
# Copyright (C) janeskil1525.
#
# This library is f
elf->path . $filename);
my $tag = substr($path->basename(), 0, index($path->basename(), '.json'));
$self->config($config->{$tag});
} catch($e) {
$self->error($e);
};
ow::Database::Model::Context;
use Mojo::Base -base, -signatures;
use v5.40;
use Mojo::JSON qw { to_json from_json };
use DBD::Pg ':pg_types';
use Data::Dumper;
# NAME
# ====
#
# Daje::Workflow::Data
0;
if (defined $context and exists $context->{context}) {
$context->{context} = from_json($context->{context});
}
return $context;
}
sub load_fk($self) {
my $context = $self-
rom_json($context->{context});
}
return $context;
}
sub save($self, $context) {
$context->{context_pkey} = 0 unless exists $context->{context_pkey};
$context->{context} = to_json($co
2;
use experimental 'class';
# NAME
# ====
#
# Daje::Workflow::Loader - Just loads Daje-Workflow JSON based workflows
#
#
# SYNOPSIS
# ========
#
# use Daje::Workflow::Loader;
#
# my $workflows
es possible ####################
=head1 NAME
Daje::Workflow::Loader - Just loads Daje-Workflow JSON based workflows
=head1 SYNOPSIS
use Daje::Workflow::Loader;
my $workflows = Daje::Wo
imestamp without time zone NOT NULL DEFAULT NOW(),
workflow_fkey bigint not null,
context JSON,
CONSTRAINT context_workflow_fkey FOREIGN KEY (workflow_fkey)
REFERENCES workflow (wo