Sepasoft MES Module Suite
system.mes.batch.queue.getBatchBOM(batchID)
Retrieves details in a python dictionary of a BOM (Bill of Materials) of a Control Recipe.
|
Scripting function queue.getBatchBOM(batchID) is available in versions: 3.81.8 RC1 Release Candidate and later |
getBatchBOM(batchID) → Python dictionary
Syntax
system.mes.batch.queue.getBatchBOM(batchID)
Parameters
string batchID - The target batch ID to retrieve. This is the Batch ID entered in the Batch header information in the Batch List component.
Returns
A Python dictionary containing the details of a bill of materials (BOM). For parameters, see Material_In Data Type
Scope
All
system.mes.batch.queue.getBatchBOM
|
MES 3.81.7 RC 1 and later getBatchBom scripting function added |
|
MES 3.81.8 RC 2 and later Added logic to return min/max values. |
Python |
masterRecipeLink = system.mes.batch.recipe.getRecipeLink('Product 1111') batchName = ‘Test Prod 1111’ batchID = ‘WO-53985’ priority = 1 scale = 1.0 quantity = 1 batchQueueEntry = createEntry(masterRecipeLink, batchName, batchID, priority, scale, quantity) print( system.util.jsonEncode(system.mes.batch.queue.getBatchBOM(batchQueueEntry))) |
Returns
JSON |
|
Sepasoft MES Module Suite