Skip to main content

system.mes.operation.startOperation

Description

Starts an Operations object.

Syntax

system.mes.operation.startOperation(operationId)
system.mes.operation.startOperation(operationId, productionOrderIdOrName)
system.mes.operation.startOperation(operationId, productionOrderIdOrName, startDate)
system.mes.operation.startOperation(operationId, productionOrderIdOrName, startDateMillis)

Parameters

Method 1: Start with Operation ID only

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

Method 2: Start with Operation ID and Production Order

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation to start.
productionOrderIdOrNameStringFalseThe ID or name of the production order associated with the operation.

Method 3: Start with Operation ID, Production Order, and Start Date

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation to start.
productionOrderIdOrNameStringFalseThe ID or name of the production order associated with the operation.
startDateDateFalseThe start date of the operation.

Method 4: Start with Operation ID, Production Order, and Start Date in Milliseconds

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation to start.
productionOrderIdOrNameStringFalseThe ID or name of the production order associated with the operation.
startDateMillisLongFalseThe start date of the operation in milliseconds.

Returns

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

Example Usage

# Start the operation
started_operation_result = system.mes.operation.startOperation('01JPBCPKSR-972W3V0Y-H00NNSKQ')

# Output the operation execution result of the started operation
print(started_operation_result)