Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Utility - exportAuditRun

Utility - exportAuditRun

Description :

This command exports results of an Audit Job run to a file. You must identify the job run by its run number. You can save the Audit Job run in HTML or CSV format.

Return type : java.lang.Void

Command Input :

Variable Name

Variable Type

Description

templateGroupName

String

Fully qualified component template group containing the template that is the basis of the Audit Job.

templateName

String

Name of the component template specifying the Audit Job results to be exported.

jobGroupName

String

Fully qualified job group where the Audit Job is stored.

jobName

String

Name of the Audit Job to export.

runId

Integer

Job Run Id of the Audit Job run to export.

exportFileName

String

Name of the file that holds the export.

exportType

String

Format for saving exported results (CSV or HTML).

Example

The following example shows how to export the job run result of an Audit Job. To prepare for the export, we first get the job key, and use it to get the job run key; we then convert the job run key to a job run ID, and then we are finally ready to run the export command.

Script

JOB_DB_KEY=`blcli AuditJob getDBKeyByGroupAndName "/sampleJobGroup" "sampleJob"`

JOB_RUN_KEY=`blcli JobRun findAllRunKeysByJobKey $JOB_DB_KEY`

JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY`

AUDIT_RUN_EXPORT=`blcli Utility exportAuditRun "/sampleTemplateGroup" "sampleTemplate" "/sampleJobGroup" "sampleJob" $JOB_RUN_ID "C:/temp/sampleJobResult.csv" "CSV"`
Was this page helpful? Yes No Submitting... Thank you

Comments