NAME

CA::WAAE::Job - Object representing an AutoSys job.

INSTANCE METHODS

next_job()

my $job = $jobs->next_job() ;

Returns the next job from a list of jobs previously acquired by a call to find_jobs().

find_children()

my $children = $job->find_children() ;

Returns child jobs for a given job object. The child jobs can be traversed like this:

my $children = $job->find_children() ;
while (my $child = $children->next_child()) {
    # do something
    :
}

children

Same as find_children(), but returns an array of CA::WAAE::Job objects.

next_child()

my $child = $children->next_child() ;

Returns the next child from a list of child jobs previously acquired by a call to find_children().

status

print "status: ".$job->status."\n";

Contains the status of the last run of the job. The hash entry $job->{status} contains the status_id.

INSTANCE VARIABLES

job_name

print "job_name: ".$job->{job_name}."\n";

Contains the name of the AutoSys job.

job_type

print "job_type: ".$job->job_type."\n";

Contains the job type name, e.g. 'CMD', 'BOX'. The hash entry $job->{job_type} contains the job_type_id.

time

print "last_start: ".$job->time('last_start')."\n";

Returns a Time::Piece object for the given datetime entry for the job. The hash entries, e.g., $job->{last_start}, contain the epoch time.

strftime

print "last_start: ".$job->strftime('last_start', $fmt)."\n";

Formatted time for any datetime entry for the job. The default format is "%Y-%m-%d %H:%M:%S". The hash entries, e.g., $job->{last_start}, contain the epoch time.

joid

print "joid: ".$job->{joid}."\n";

Contains the internal job id in the AutoSys database.

SEE ALSO

CA::WAAE CA::AutoSys

AUTHOR

Original CA::AutoSys code by Sinisa Susnjar <sini@cpan.org>

Updates by Douglas Wilson <dougw@cpan.org>

COPYRIGHT AND LICENSE

Original CA::AutoSys code: Copyright (c) 2007 Sinisa Susnjar. All rights reserved.

This program is free software; you can use and redistribute it under the terms of the L-GPL. See the LICENSE file for details.