Description

Get the current operations response objects that are currently running for the equipment specified by the equipmentPath parameter.

Syntax

system.mes.getCurrentOperations(equipmentPath)


  • Parameters

String equipmentPath - Equipment path of the equipment to return the current operations response objects for.

  • Returns

A MESObjectList object that holds a collection of operations response objects that are currently active for the equipment.

  • Scope

All

Code Examples
Code Snippet
operations = system.mes.getCurrentOperations('[global]\Enterprise\Site\Area\Line 3')
for op in operations:
    for seg in op.getActiveSegmentNames():
        print op.getActiveSegment(seg)
Output
ResponseSegment (57b24812-fe82-4840-a84f-34d8b25e132d, MatDef1-Enterprise:Site:Area:Line 3, 0 parents, 0 children, 0 custom properties, 7 complex properties)
ResponseSegment (6bf8f70f-2309-4c08-a7f6-f06fe78b11a7, MatDef2-Enterprise:Site:Area:Line 3, 0 parents, 0 children, 0 custom properties, 7 complex properties)
Code Examples
Code Snippet
#specify path for which the current operations are to be listed
eqPath = 'Enterprise\Site\Area\Line 1'
list = system.mes.getCurrentOperations(eqPath)
for i in range(list.size()):
	print list.get(i) 
Output
OperationsResponse (becc61f8-86ca-44fe-9345-626a6ab9151d, PC-002-Enterprise:Site:Area:Line 1, 0 parents, 0 children, 0 custom properties, 1 complex properties) 
  • No labels