Sepasoft MES Module Suite
system.mes.getAvailableSegments(operationsResponse, searchPattern)
Get a list of the available segments that can be executed for the specified operation response object.
Syntax
system.mes.getAvailableSegments(operationsResponse, searchPattern)
- Parameters
MESOperationsResponse operationsResponse - The MES object that the segments are defined in.
String searchPattern - The search pattern to filter the results by. It can contain the * and ? wild card characters.
- Returns
A list of available segments. The list is returned as a MESList object that is a collection holding MESObjectLinks for each segment object.
- Scope
All
Python |
#This code will print the list of available segments. operDef = system.mes.loadMESObject('Receive Material', 'OperationsDefinition') operResp = system.mes.createOperation(operDef) list = system.mes.getAvailableSegments(operResp, 'Receive *') for ndx in range(list.size()): segments = list.get(ndx) print segments |
Output
Code |
Receive Material |
Sepasoft MES Module Suite