Skip to end of metadata
Go to start of metadata
Description

Return a list of Operations Segments that support the specified material.

Syntax

system.mes.oee.getMaterialOperationsSegments(materialLink, searchPattern)


  • Parameters

 MESObjectLink materialLink - The MES object link to the material definition to return results for.

String searchPattern - Operations Segment name filter pattern to limit the results by. It can contain the * and ? wild card characters.

  • Returns

MESObjectList - MESObjectList containing Operations Segment objects in the results.

  • Scope

All

Code Examples
Code Snippet
##Get the Material Class Link
matClassLink = system.mes.getMESObjectLinkByName('MaterialClass', 'Test Material')
##Get the Material Definition of interest
item = system.mes.oee.getMaterialItems(matClassLink, 'PC_0001').get(0)
##Get the List of Material Operations Segments and print each one out
list = system.mes.oee.getMaterialOperationsSegments(item, '*')
print list
for i in range(list.size()):
	obj = list.get(i)
	print obj 
Output
OperationsSegment (d88a7df5-677b-4639-a678-fb999589892e, PC_0001-Enterprise:Site:Area:Line 1, 0 parents, 0 children, 0 custom properties, 7 complex properties)
OperationsSegment (889efb28-cecd-49e5-ab95-8809b2bd08a4, PC_0001-Enterprise:Site:Area:Line 1:Code Dater, 0 parents, 0 children, 0 custom properties, 7 complex properties)
OperationsSegment (daad7ffd-31f2-4844-bc6d-ea238cce6b33, PC_0001-Enterprise:Site:Area:Line 1:Code Dater_CO, 0 parents, 0 children, 0 custom properties, 7 complex properties)
OperationsSegment (ae4a8f2d-540a-4132-87cb-252871b92fdf, PC_0001-Enterprise:Site:Area:Line 1:Filler, 0 parents, 0 children, 0 custom properties, 7 complex properties)
OperationsSegment (4be5ac58-1b6b-400b-8ca1-e978a329bab4, PC_0001-Enterprise:Site:Area:Line 1:Filler_CO, 0 parents, 0 children, 0 custom properties, 7 complex properties) 
...