system.recipe.getProductionItemList

Sepasoft MES Module Suite

Description

Returns the list of production item corresponding to given recipe name and filter.

Syntax

system.recipe.getProductionItemList(recipeName, itemPathFilter)


  • Parameters

String recipeName - The recipe name.

String itemPathFilter - The path to filter the results.

  • Returns

A list of RecipeProductionItemInfo objects (See Machine Recipe Production Item Info object in the MES documentation).

  • Scope

All

Code Examples

Code Snippet

Code
recipeName = 'PC_007-IBC-RB'
itemPathFilter = 'Enterprise\New Site\Packaging\packagingLine1'
list = system.recipe.getProductionItemList(recipeName, itemPathFilter)
if list.size() > 0:
    print 'The production Items for %s:' %recipeName
    for productionItem in list:
        print productionItem
else:
    print 'No production items found for %s' %itemPathFilter

Output

Code
The production Items for PC_007-IBC-RB:
packagingLine1
    CasePacker
    Checkweigher
    Filler
    Palletizer
    packingLine1 Quality

 

 

Sepasoft MES Module Suite