NAME
Daje::Workflow::Checks::Mandatory - Checks for mandatory fields
SYNOPSIS
check($self)
Checks can either come from the workflow checks tag as a comma separated string of fields
{
"name": "Mandatory fields",
"class": "Daje::Workflow::Checks::Mandatory",
"checks": "name,tools_object_types_fkey,active"
}
or a database model class containing a mandatory method containing a comma separated list of fields
{
"name": "Mandatory fields",
"class": "Daje::Workflow::Checks::Mandatory",
"checks": "Daje::Database::Model::SentinelStatus"
}
Assumed format of data $self->context->{context}->{payload}->{field to be checked for existence)
DESCRIPTION
Daje::Workflow::Checks::Mandatory is used to check and make sure mandatory fields are included in the context
REQUIRES
METHODS
check($self)
check($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.