Previous Topic: saveAttachmentToFileNext Topic: setProcessProgress


setOperatorStatus

The setOperatorStatus function is used to either force fail or force pass the operator.

Syntax

setOperatorStatus (operatorStatus, operationResult, reason)

Arguments

Operator Status (String)

Specifies the state of the operator. This argument can take either success or failure values only.

Operation Result (Int)

Specifies the operation result. This argument overrides the operator result in the operator dataset.

Reason (String)

Specifies the reason that overrides the operator reason in the operator dataset.

Return Value

No value returned (void).

Example

The following example performs a force success on the operator with an operation result of 1 and the reason as "force success".

setOperatorStatus("success",1,"force success")