Skip to main content

system.mes.operation.stopOperation

Description

Stops an Operations object.

Syntax

system.mes.operation.stopOperation(operationId)
system.mes.operation.stopOperation(operationId, endDate)
system.mes.operation.stopOperation(operationId, endDateMillis)

Parameters

Method 1: Stop with Operation ID only

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation to stop.

Method 2: Stop with Operation ID and End Date

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation to stop.
endDateDateFalseThe stop date of the operation.

Method 3: Stop with Operation ID and End Date in Milliseconds

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation to stop.
endDateMillisLongFalseThe stop date of the operation in milliseconds.

Returns

Returns a JSON object of the operation execution result for the end of the operation.

Example Usage

# Stop the operation
stopped_operation_result = system.mes.operation.stopOperation('01JPBCPKSR-972W3V0Y-H00NNSKQ')

# Output the operation execution result of the stopped operation
print(stopped_operation_result)