EAI-Wrap
view release on metacpan or search on metacpan
lib/EAI/Wrap.pm view on Meta::CPAN
optional argument $archiveTimestamp
move transferred files marked for moving in C<$execute{filesToMoveinHistory}> or C<$execute{filesToMoveinHistoryUpload}> into history and/or historyUpload folder. Optionally a custom timestamp can be passed.
=item deleteFiles ()
delete transferred files set in C<$execute{filesToDelete}> and C<$execute{filesUploadedToDelete}>
=back
=head2 CONFIGURATION REFERENCE
=over 4
=item config
parameter category for site global settings, usually defined in site.config and other associated configs loaded at INIT
=over 4
=item checkLogExistDelay
ref to following hash: {Test => 2, Dev => 3, "" => 0}, mapping to set delays for checkLogExist per environment in $execute{env}, this can be further overriden per job (and environment) in checkLookup.
=item checkLookup
ref to following datastructure: {"scriptname.pl + optional addToScriptName" => {errmailaddress => "",errmailsubject => "",timeToCheck =>"", freqToCheck => "", logFileToCheck => "", logcheck => "",logRootPath =>""},...} used for logchecker, each entry...
=item errmailaddress
default mail address for central logcheck/errmail sending
=item errmailsubject
default mail subject for central logcheck/errmail sending
=item executeOnInit
code to be executed during INIT of EAI::Wrap to allow for assignment of config/execute parameters from commandline params BEFORE Logging!
=item folderEnvironmentMapping
ref to hash {Test => "Test", Dev => "Dev", "" => "Prod"}, mapping for $execute{envraw} to $execute{env}
=item fromaddress
from address for central logcheck/errmail sending, also used as default sender address for sendGeneralMail
=item historyFolder
ref to following hash: {"scriptname.pl + optional addToScriptName" => "folder"}, folders where downloaded files are historized, lookup key as in checkLookup, default in "" => "defaultfolder". historyFolder, historyFolderUpload, logRootPath and redoDi...
=item historyFolderUpload
ref to following hash: {"scriptname.pl + optional addToScriptName" => "folder"}, folders where uploaded files are historized, lookup key as in checkLookup, default in "" => "defaultfolder"
=item logCheckHoliday
calendar for business days in central logcheck/errmail sending. builtin calendars are AT (Austria), TG (Target), UK (United Kingdom) and WE (for only weekends). Calendars can be added with EAI::DateUtil::addCalendar
=item logs_to_be_ignored_in_nonprod
regular expression to specify logs to be ignored in central logcheck/errmail sending
=item logprefixForLastLogfile
prefix for previous (day) logs to be set in error mail (link), if not given, defaults to get_curdate(). In case Log::Dispatch::FileRotate is used as the File Appender in Log4perl config, the previous log is identified with <logname>.1
=item logRootPath
ref to following hash: {"scriptname.pl + optional addToScriptName" => "folder"}, paths to log file root folders (environment is added to that if non production), lookup key as checkLookup, default in "" => "defaultfolder"
=item prodEnvironmentInSeparatePath
set to 1 if the production scripts/logs etc. are in a separate Path defined by folderEnvironmentMapping (prod=root/Prod, test=root/Test, etc.), set to 0 if the production scripts/logs are in the root folder and all other environments are below that f...
=item redoDir
ref to following hash: {"scriptname.pl + optional addToScriptName" => "folder"}, folders where files for redo are contained, lookup key as checkLookup, default in "" => "defaultfolder"
=item sensitive
hash lookup table: {"prefix" => {user=>"",pwd =>"",hostkey=>"",privkey =>""},...} for sensitive access information in DB and FTP (lookup keys are set with DB{prefix} or FTP{prefix}), may also be placed outside of site.config; all sensitive keys can a...
=item smtpServer
smtp server for den (error) mail sending
=item smtpTimeout
timeout for smtp response
=item testerrmailaddress
error mail address in non prod environment
=back
=item execute
hash of parameters for current task execution. This is not to be set by the user, but can be used to as information to set other parameters and control the flow
=over 4
=item addToScriptName
this can be set to be added to the scriptname for config{checkLookup} keys, e.g. some passed parameter. This is typically done in config{executeOnInit}
=item env
Prod, Test, Dev, whatever is defined as the lookup value in folderEnvironmentMapping. homedir as fetched from the File::basename::dirname of the executing script using /^.*[\\\/](.*?)$/ is used as the key for looking up this value.
=item envraw
Production has a special significance here as being an empty string. Otherwise like env.
=item errmailaddress
target address for central logcheck/errmail sending in current process
lib/EAI/Wrap.pm view on Meta::CPAN
logfile where command given in uploadCMD writes output (for error handling)
=back
=item task
contains parameters used on the task script level, only available for %common parameter hash.
=over 4
=item customHistoryTimestamp
optional custom timestamp to be added to filenames moved to History/HistoryUpload/FTP archive, if not given, get_curdatetime is used (YYYYMMDD_hhmmss)
=item execOnly
do not execute loads where $common{task}{execOnly} !~ $load->{process}{onlyExecFor}. Empty onlyExecFor loads are always executed regardless of $common{task}{execOnly}
=item ignoreNoTest
ignore the notest file in the process-script folder, usually preventing all runs that are not in production
=item plannedUntil
latest time that planned repetition should start, this can be given either as HHMM (HourMinute) or HHMMSS (HourMinuteSecond), in case of HHMM the "Second" part is attached as 59
=item redoFile
flag for specifying a redo
=item redoTimestampPatternPart
part of the regex for checking against filename in redo with additional timestamp/redoDir pattern (e.g. "redo", numbers and _), anything after files barename (and before ".$ext" if extension is defined) is regarded as a timestamp. Example: '[\d_]', t...
=item retryEndsAfterMidnight
if set, all retries should end after midnight
=item retrySecondsErr
retry period in case of error
=item retrySecondsErrAfterXfails
after fail count is reached this alternate retry period in case of error is applied. If 0/undefined then job finishes after fail count
=item retrySecondsXfails
fail count after which the retrySecondsErr are changed to retrySecondsErrAfterXfails
=item retrySecondsPlanned
retry period in case of planned retry
=item skipHolidays
skip script execution on holidays
=item skipHolidaysDefault
holiday calendar to take into account for skipHolidays
=item skipWeekends
skip script execution on weekends
=item skipForFirstBusinessDate
used for "wait with execution for first business date", either this is a calendar or 1 (then calendar is skipHolidaysDefault), this cannot be used together with skipHolidays
=back
=back
=head1 COPYRIGHT
Copyright (c) 2026 Roland Kapl
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included
with this module.
=cut
( run in 3.124 seconds using v1.01-cache-2.11-cpan-8f98c5d2c55 )