system.mes.getOperationSegments

Sepasoft MES Module Suite

system.mes.getOperationSegments(operationsLink, searchPattern)

Get the segments that belong to the specified operations response. Note, for available segments that an active operations response can run, use getAvailableSegments() instead.

Syntax

system.mes.getOperationSegments(operationsLink, searchPattern)

  • Parameters

 MESObjectLink operationsLink - The MES object link to an operation definition, operations version, operations request or operations response object to return the associated segments.

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

  • Returns

A list of links representing all segments of the operation. The list is returned as a MESList object that is a collection holding MESObjectLinks for each segment object. 

  • Scope

All

Code Example

Python
objLink = system.mes.object.link.create('OperationsDefinition', 'ec8fa61c-2dce-4499-870a-04ee6e778c15')
system.mes.getOperationSegments(objLink, 'Receive *')

Sepasoft MES Module Suite