system.mes.batch.queue.getBatchObjects()

Sepasoft MES Module Suite

system.mes.batch.queue.getBatchObjects(batchID)

Retrieves the control recipe and logic objects associated with a batch ID.  The batch ID is passed in as a parameter, and a MESObjectList object is returned containing the BatchControlRecipe and associated BatchControlLogic objects.

If the batch is not COMPLETE, then an exception is returned. This prevents modification of steps, parameters, etc. outside of the batch engine that controls the objects during batch execution.

getBatchObjects(batchID) → MESObjectList

Syntax

getBatchObjects(batchID)

Parameters

String batchID - The batch ID to return the objects for.

Returns

 A list of MES objects including the Batch Control Recipe and all associated Batch Control Logic objects.

Scope

All

Scripting Example

The batch ID is passed in as a parameter, and a MESObjectList object is returned containing the BatchControlRecipe and associated BatchControlLogic objects.

Code
objList = system.mes.batch.queue.getBatchObjects('DT081601')

Sepasoft MES Module Suite