WorkflowJob - updateWorkflowJobRunLog


WorkflowJob - updateWorkflowJobRunLog

Description :

This command updates the Workflow Job run log with messages from Atrium Orchestrator (AO).

To get the workflowJobRunId, first get the run key of the Workflow Job. The JobRun : findAllRunKeysByJobKey command has an example of how to do this. Once you have the run key, you can use the Job Run : jobRunKeyToJobRunId command to get the workflowJobRunId.

Set logLevel to one of the following integers:

  • -1=ERROR
  • -2=INFO
  • -5=WARNING
  • -6=FINE
  • -7=FINER
  • -8=FINEST

Return type : void

Command Input :

Variable Name

Variable Type

Description

workflowJobRunID

Integer

ID of the Workflow Job run.

logLevel

Integer

Level of logging.

logMsg

String

Message to log.

Example

The following example demonstrates how to update a Workflow Job's run log with a message.

Script





# ID of the Workflow Job Run.

WORKFLOWJOBRUN_ID="2002000"

# The log level you want to register with the message.

LOG_LEVEL="-1"

# The message to log.

LOG_MSG="Test Log Message to BL Workflow Job"

# Update the Workflow Job run log

`blcli WorkflowJob updateWorkflowJobRunLog $WORKFLOWJOBRUN_ID $LOG_LEVEL $LOG_MSG`



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Server Automation Command Line Interface 21.02