Sepasoft MES Module Suite
system.mes.endOperation(equipmentPath, operationsResponse)
End the current operation for the equipment specified by the equipmentPath parameter.
Syntax
system.mes.endOperation(equipmentPath, operationsResponse)
- Parameters
String equipmentPath - Equipment path of the equipment to end the operation.
MESOperationsResponse operationsResponse - The MES object to end. Final properties must be set in the operations response object prior to calling this function. Usually a called to get the current operations response object is done prior to calling this function. Usually, a called to get the current operations response object is done prior to calling this function.
- Returns
Nothing
- Scope
All
Python |
eqPath = 'My Enterprise\California\Receiving\Unload Station 1' operDef = system.mes.loadMESObject('Receive Material', 'OperationsDefinition') #Create an operation based on the operations definition operResp = system.mes.createOperation(operDef) system.mes.endOperation(eqPath, operResp) |
Python |
#This code will end the current operation oper = system.mes.getCurrentOperation('Dressings Inc\California\Raw Materials\Unload Station 1') oper.end() |
Python |
#Add new custom property to the operation before it is ended cp = {'Effort' : ['String', 'Maximum']} oper.setCustomPropertyValues(cp) oper.end() |
Sepasoft MES Module Suite