Qorus Integration Engine
3.0.4.p7
|
Functions | |
*hash | info.getJobOverview (softdate $date=now()-1D, any $jobids, bool $useSqlCache=True) |
gets job overview, params: [date, [jobids]]: If no date is given, default = last 24 hours More... | |
*hash | info.getJobOverviewFromName (softdate $date=now()-1D, *string $name, bool $useSqlCache=True) |
gets job overview, params: [date, [name]]: If no date is given, default = last 24 hours More... | |
*hash | info.getJobMetadata () |
retrieves job metadata (optional params: list of job ids), returns: job info keyed by name More... | |
*hash | info.getJobMetadataFromName (string $name) |
retrieves job metadata from the name, returns: job info keyed by name More... | |
list | info.getJobList () |
retrieves a list of all jobs without the code field More... | |
*hash | info.getJobStatus (softint $jiid) |
returns NOTHING if the job instance ID is not valid or a hash giving job instance status corresponding to the job instance ID passed as an argument More... | |
*list | info.getJobInstanceList (any $jobid, *softdate $date=now()-1D, any $stati, softint $rownum=get_option("row-limit")) |
gets a list of job instance ids (not more than 100 by default, can be overridden with the 4th argument), params: jobid (single value or list), date, [statuses, num rows] More... | |
*list | info.getJobInstances (*softlist $jobids, *softlist $statuses, *softdate $modified, softint $rownum=get_option("row-limit"), *softint $offset, *softlist $sort, *softlist $jiids, *softbool $desc, *softbool $full) |
gets a list of job instance ids, params: jobid, condition, number of rows (100 default) More... | |
* list info.getJobInstanceList | ( | any | $jobid, |
*softdate | $date = now() - 1D , |
||
any | $stati, | ||
softint | $rownum = get_option("row-limit") |
||
) |
gets a list of job instance ids (not more than 100 by default, can be overridden with the 4th argument), params: jobid (single value or list), date, [statuses, num rows]
$jobid | a single jobid or a list of jobids to query |
$date | an optional cutoff date, if the date parameter is not passed, then the cutoff date is set to 24 hours in the past; the cutoff date is used with the job_instance.modified column; only rows with a modified date greater than or equal to the date passed will be returned |
$stati | a single job status or a list of job statuses to check; see Job Data Status Descriptions for possible values |
$rownum | the maximum number of rows to return |
PARAMETER-ERROR | missing jobid parameter, invalid date passed, or invalid job status passed |
JOB-ACCESS-ERROR | Role Based Access Control is enabled and the calling user does not have the right to access one or more of the given jobids |
* list info.getJobInstances | ( | *softlist | $jobids, |
*softlist | $statuses, | ||
*softdate | $modified, | ||
softint | $rownum = get_option("row-limit") , |
||
*softint | $offset, | ||
*softlist | $sort, | ||
*softlist | $jiids, | ||
*softbool | $desc, | ||
*softbool | $full | ||
) |
gets a list of job instance ids, params: jobid, condition, number of rows (100 default)
$jobid | the jobid to query |
$statuses | a list with requested statuses in expanded form ('ERROR') or NOTHING |
$modified | a limit (>=) for MODIFIED columnn or NOTHING |
$rownum | the maximum number of rows to return |
job_instanceid:
the job instance ID being queriedjobid:
the jobid (metadata ID)jobstatus:
the current status of the job (see Job Data Status Descriptions for possible values)sessionid:
the application session currently running the job, otherwise 0started:
the time the job instance was startedcompleted:
the time the job instance completed (with any status)modified:
the time the job instance was last modifiedJOB-ACCESS-ERROR | Role Based Access Control is enabled and the calling user does not have the right to access one or more of the given jobids |
list info.getJobList | ( | ) |
retrieves a list of all jobs without the code field
name:
the unique name of the jobjobid:
the unique job IDdescription:
job descriptionversion:
version number of the jobsessionid:
if single_instance
is True
, then this field could be non-0, meaning that the job is currently running in that instanceactive:
True
if active, False
if notrun_skipped:
True
if the job should be executed immediately if a trigger time was missed due to down time, False
if notrecurring
]: if this field is present, this gives the number of seconds between job executions, and the cron fields will not be presentminute
]: cron field: minutes when the job can be executedhour
]: cron field: hours when the job can be executedday
]: cron field: days when the job can be executedmonth
]: cron field: months when the job can be executedwday
]: cron field: week days (0 = Sunday) when the job can be executedlast_executed
]: the date/time the job was last executed (if not present, the job has not yet been executed)expiry_date
]: the date/time the job will expire; if this date is present, the job will not run automatically after this datecreated:
the date/time the job was loaded into the databasemodified:
the date/time the job was modified in the databasesingle_instance:
if True
, then this job can only be started on one Qorus instance at a timegroups:
a list of RBAC group names that this job is a member of* hash info.getJobMetadata | ( | ) |
retrieves job metadata (optional params: list of job ids), returns: job info keyed by name
name:
the unique name of the jobjobid:
the unique job IDdescription:
job descriptionversion:
version number of the jobsessionid:
if single_instance
is True
, then this field could be non-0, meaning that the job is currently running in that instanceactive:
True
if active, False
if notrun_skipped:
True
if the job should be executed immediately if a trigger time was missed due to down time, False
if notcode:
the source code of the jobrecurring
]: if this field is present, this gives the number of seconds between job executions, and the cron fields will not be presentminute
]: cron field: minutes when the job can be executedhour
]: cron field: hours when the job can be executedday
]: cron field: days when the job can be executedmonth
]: cron field: months when the job can be executedwday
]: cron field: week days (0 = Sunday) when the job can be executedlast_executed
]: the date/time the job was last executed (if not present, the job has not yet been executed)expiry_date
]: the date/time the job will expire; if this date is present, the job will not run automatically after this datecreated:
the date/time the job was loaded into the databasemodified:
the date/time the job was modified in the databasesingle_instance:
if True
, then this job can only be started on one Qorus instance at a timelib:
a hash keyed by library object type (key values: "functions"
, "classes"
, "constants"
); the value of each key will be a list of hashes with the following keys (empty lists mean no objects of that type are listed as library objects of the workflow): name:
the name of the library object version:
the version of the library object id:
the ID of the library object (referencing the tables, FUNCTION_INSTANCE
, CLASSES
, or CONSTANTS
) groups:
a list of RBAC group names that this job is a member ofJOB-ACCESS-ERROR | Role Based Access Control is enabled and the user does not have access to the given job |
retrieves job metadata from the name, returns: job info keyed by name
$name | the name of the job to query |
JOB-ACCESS-ERROR | Role Based Access Control is enabled and the user does not have access to the given job |
gets job overview, params: [date, [jobids]]: If no date is given, default = last 24 hours
$date | the minimum date to check for changes; job_instance rows with a modified date before this date will not be reported; the default value is 24 hours from the current date and time |
$jobids |
jobid:
the jobid of the jobversion:
the version of the jobCOMPLETE
]: the number of job instances with status OMQ::JS_Complete in the given time frameERROR
]: the number of job instances with status OMQ::JS_Complete in the given time frameIN-PROGRESS
]: the number of job instances with status OMQ::JS_InProgress in the given time frame (should never be > 1 for a given job)CRASH
]: the number of job instances with status OMQ::JS_Crash in the given time framePARAMETER-ERROR | the date passed was not valid |
JOB-ACCESS-ERROR | Role Based Access Control is enabled and the user does not have access to the given job |
JOB-ACCESS-ERROR
exception is raised * hash info.getJobOverviewFromName | ( | softdate | $date = now() - 1D , |
*string | $name, | ||
bool | $useSqlCache = True |
||
) |
gets job overview, params: [date, [name]]: If no date is given, default = last 24 hours
$date | the minimum date to check for changes; job_instance rows with a modified date before this date will not be reported; the default value is 24 hours from the current date and time |
$name | the optional name of the job to check; if no name is passed, then all accessible jobs will be reported |
UNKNOWN-JOB | the job name given does not exist |
PARAMETER-ERROR | the date passed was not valid |
JOB-ACCESS-ERROR | Role Based Access Control is enabled and the user does not have access to the given job |
JOB-ACCESS-ERROR
exception is raised * hash info.getJobStatus | ( | softint | $jiid | ) |
returns NOTHING if the job instance ID is not valid or a hash giving job instance status corresponding to the job instance ID passed as an argument
$jiid | the job instance ID to query |
job_instanceid:
the job instance ID being queriedjobid:
the jobid (metadata ID)sessionid:
the application session currently running the job, otherwise 0jobstatus:
the current status of the job (see Job Data Status Descriptions for possible values)info
]: the information saved against the job (if any)started:
the time the job instance was startedcompleted:
the time the job instance completed (with any status)modified:
the time the job instance was last modifiederrors:
if any errors were raised against the job instance, they will appear as hashes in a list assigned to this key; the hashes will have the following keys: job_errorid:
the unique ID of the error in the job_errors
table severity:
the severity of the error (see Error Severity Codes for possible values) error:
the error code description:
description of the error info
]: any additional data saved against the error business_error:
True if the error is a business error, False if not created:
the date/time the error was created audit:
if any audit events were created for the given job instance, they will appear as hashes in a list assigned to this key; the hashes will have the following keys: audit_eventid:
the audit event ID (unique key in the AUDIT_EVENTS
table) related_audit_eventid
]: related audit event ID audit_event_code:
the audit event code (see Audit Event Codes for possible values) audit_user_event
]: the user audit event code string (present only when audit_event_code
is OMQ::AE_USER_EVENT) reason
]: the reason for the event who:
the initiator of the event source:
a string describing the source of the event info1
]: an informational string about the event info2
]: an informational string about the event created:
the date/time the audit event was created event:
the string description corresponding to the audit_event_code
(see Audit Event Strings for possible values) JOB-ACCESS-ERROR | Role Based Access Control is enabled and the user does not have access to the given job instance ID |