MES List

Sepasoft MES Module Suite

MES List

This object is a collection of MES Object Links and allows searching by name and UUID. MES List implements the java ArrayList and associated methods.

Object Creation

The following object methods can be used to return this type of object.

Code Snippet

Python
#This code will return an MES List
filter = system.mes.object.filter.createFilter()
filter.setMESObjectNamePattern('Mixed Nuts')
list = system.mes.searchMESObjects(filter)
for ndx in range(list.size()):
    mesObjectLink = list.get(ndx)
    print mesObjectLink.getMESObjectType().getDisplayName()

Output

>>> 
Response Material Definition
Response Material Definition
Response Material Definition
Response Material Definition
Material Definition
>>> 

No scripting function or component use this object directly.


 Converting an MES List object to an MES Object List

Code Snippet

Python
def convert_link_list(mes_link_list):
    mes_obj_list = system.mes.object.list.createList()
	mes_obj_list.addAll(mes_link_list)
    return mes_obj_list

Object Functions

This object provides the following functions:


findByName(name)

Search for an MES object by its name.

Syntax

findByName(name)

  • Parameters

String name - Name of the MES object.

  • Returns

The MES object corresponding to the name.

  • Scope

All

findByUUID(uuid)

Search for an MES object by its unique identifier.

Syntax

findByUUID(uuid)

  • Parameters

String uuid - Unique identifier of the MES object.

  • Returns

The MES object corresponding to the specified uuid.

  • Scope

All




Sepasoft MES Module Suite