Sepasoft MES Module Suite
createOperationFromRequestUUID(operationsRequestUUID)
Create a new MESOperationsResponse from the specified operations request UUID. When wanting to begin operations requests that have previously been scheduled, this method will create a new instance of a operation response from it.
Syntax
system.mes.createOperationFromRequestUUID(operationsRequestUUID)
- Parameters
String operationsRequestUUID - The UUID of the MES operations request object. UUIDs are unique identifiers.
- Returns
A MESObjectList object holding all the objects associated with the new operations response.
- Scope
All
Python |
#Prints the list of operation response objects respObjs = system.mes.createOperationFromRequestUUID('ccedca08-7d74-4566-a47f-d1a8fe03e337') for obj in respObjs: print obj ##Checks to see if the object is the Operations Response, then begins the operation. if obj.getMESObjectTypeName() == 'OperationsResponse': oper = obj.begin() ##Then typically you would create, configure, then execute your Response Segments under the Operations Response. |
Output
Python |
OperationsPerformance (09f79c29-a382-4a6b-871d-5f046586bef5, Package Nuts Schedule, 0 parents, 0 children, 0 custom properties, 1 complex properties) OperationsResponse (d703c3f7-061e-4348-9fe3-f2db1c3050d9, Package Nuts, 0 parents, 0 children, 0 custom properties, 1 complex properties) |
Sepasoft MES Module Suite