system.mes.getAvailableOperations

Sepasoft MES Module Suite

system.mes.getAvailableOperations(equipmentPath, searchPattern, onlyMatchingSegements, onlyProductionVisible)

Get a list of the available operations that can be executed on the equipment specified by the equipmentPath parameter.

Syntax

system.mes.getAvailableOperations(equipmentPath, searchPattern, onlyMatchingSegements, onlyProductionVisible)

  • Parameters

String equipmentPath - Equipment path of the equipment to return available operations for.

String searchPattern - The search pattern to filter the results by. It can contain the * and ? wild card characters. 

boolean onlyMatchingSegments - If true, only return operations that have a segment with a matching name. This is used to make a single selection instead of having to select and operation and then a segment.

boolean onlyProductionVisible - If true, only visible during the production mode.

  • Returns

A list of available operations. A MESList object is returned that is a collection holding MES object links that represent operations.

  • Scope

All

Code Examples

Python
#This will list out all the available operations
oper = system.mes.getAvailableOperations('Dressings Inc\California\Raw Materials\Unload Station 1', 'Receive *', True, True)



Sepasoft MES Module Suite