Overview

These script functions are used to create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation.

Method Options


Description

Create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation.

Syntax

system.mes.createOperation(operationsDefinition)


  • Parameters

MESOperationsDefinition operationsDefinition - The operations definition to base the operations response on.

  • Returns

A new MESOperationsResponse object.

  • Scope

All

Code Examples
Code Snippet
#load the operations definition
operDef = system.mes.loadMESObject('Receive Material', 'OperationsDefinition')
#create an operation for the operations definition
operResp = system.mes.createOperation(operDef)
Description

Create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation. Auto assign options are set to true in this overloaded method

Syntax

system.mes.createOperation(operationsDefinitionName, equipmentPath)


  • Parameters

String operationsDefinitionName - The name of the operations definition to base the operations response on.

String equipmentPath - Equipment path of where it will be run.

  • Returns

A new MESOperationsResponse object.

  • Scope

All

Code Examples
Code Snippet
#This code will create a new operation for the specified equipment
eqPath = '[global]\My Enterprise\California\Receiving\Unload Station 2'
system.mes.createOperation('Receive Turkeys', eqPath)
Description

Create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation.

Syntax

system.mes.createOperation(operationsDefinitionName, equipmentPath, ignoreVersion)


  • Parameters

String operationsDefinitionName - The name of the operations definition to base the operations response on.

String equipmentPath - Equipment path of where it will be run.

boolean ignoreVersion - If true, ignore the checking if the operations definition MES object has a new version number and just use the last operation version that was created.

  • Returns

A new MESOperationsResponse object.

  • Scope

All

Code Examples
Code Snippet
#This code will create a new operation for the specified equipment
eqPath = '[global]\My Enterprise\California\Receiving\Unload Station 2'
system.mes.createOperation('Receive Turkeys', eqPath, True)