WorkflowJob - updateWorkflowJobRunStatus


WorkflowJob - updateWorkflowJobRunStatus

Description :

This command updates a Workflow Job run status.

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 status to one of the following integers:

  • -1=ERROR
  • -5=WARNING

Return type : void

Command Input :

Variable Name

Variable Type

Description

workflowJobRunID

Integer

ID of the Workflow Job run.

status

Integer

Status of the Workflow Job run.

Example

The following example demonstrates how to update a Workflow Job run status.

Script





# ID of the Workflow Job Run.

WORKFLOWJOBRUN_ID="2002000"

# The status level to set the Workflow Job run to.

STATUS="-1"

# Set the Workflow Job run status

`blcli WorkflowJob updateWorkflowJobRunStatus $WORKFLOWJOBRUN_ID $STATUS`



 

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

TrueSight Server Automation Command Line Interface 21.02