MES Property Value Filter

Sepasoft MES Module Suite

MESPropertyValueFilter Object

The MESPropertyValueFilter object is used to define custom property value filters that are used by script functions to return lot objects or other objects that contain the defined properties.


Object Creation

The following scripting functions can be used to return a list of property value filter objects.

  • system.mes.lot.filter.parseCustomPropertyValueFilter()

  • system.mes.object.filter.parseCustomPropertyValueFilter()

 

How parseCustomPropertyValueFilter() works

The parseCustomPropertyValueFilter() function takes in a comma delimited string of filter parameters and returns a list of MESPropertyValueFilter objects that can then be passed to the filter object.

Code Snippet
#We pass in a string to create a filter to find  pH property > 5.0 and Width property = 2.5
#Then to actually use it, we do filter.setCustomPropertyValueFilter(list)
filter = system.mes.object.filter.createFilter()
list = system.mes.object.filter.parseCustomPropertyValueFilter('pH > 5.0,Width = 2.5')
filter.setCustomPropertyValueFilter(list)
results = system.mes.loadMESObjects(filter)
for link in results:
    print link.getName()

 

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

  • MES Lot Filter Object.getCustomPropertyValueFilter()
  • MES Object Filter Object.getCustomPropertyValueFilter()

 

Use

The following object methods use this type of object.

  • MES Lot Filter Object.setCustomPropertyValueFilter()
  • MES Object Filter Object.setCustomPropertyValueFilter()

Object Properties

This object inherits the AbstractMESObject properties.


Object Functions

This object provides the following functions:

 

getPropertyPath()

Description

Get the path to the property this filter is associated with.

Syntax

getPropertyPath()

  • Parameters

None

  • Returns

String  path - The property path.

 

getValue()

Description

Get the value of the property.

Syntax

getValue()

  • Parameters

None

  • Returns

String  value - The property value.

 

setPropertyPath(path)

Description

Set the path of the property this filter is associated with.

Syntax

setPropertyPath(path)

  • Parameters

String  path - The property path.

  • Returns

Nothing

 

setValue(value)

Description

Set the value of the property.

Syntax

setValue(value)

  • Parameters

String  value - The property value.

  • Returns

Nothing

 

This object inherits the AbstractMESObject functions.

Sepasoft MES Module Suite