system.recipe.getEquipmentRecipeList

Sepasoft MES Module Suite

getEquipmentRecipeList(itemPath, recipeNameFilter)

Description

Return the current recipes available for a production item.

Syntax

system.recipe.getEquipmentRecipeList(itemPath, recipeNameFilter)


  • Parameters

String itemPath - The item path to a production line, cell, cell group or location.

String recipeNameFilter - Optional recipe filter. The filter can contain ? and * wild card characters.

  • Returns

A list of currently available recipes.

  • Scope

All

Code Examples

Code Snippet

Code
itemPath = "Enterprise\New Site\Packaging\packagingLine1\Filler"
filter = "*e*"
list = system.recipe.getEquipmentRecipeList(itemPath, filter)
if list.size() > 0:
    for recipeName in list:
        print 'Recipe Name = %s' %recipeName
else:
    print "No recipes meet the criteria of %s "  %filter

Output

Code
Recipe Name = B_Test
Recipe Name = Manually Created Recipe 1
Recipe Name = Manually Created Recipe 2
Recipe Name = Manually Created Recipe 3
Recipe Name = Manually Created Recipe 4
Recipe Name = Manually Created Recipe 5
Recipe Name = Manually Created Recipe 51
Recipe Name = Manually Created Recipe 55
Recipe Name = Manually Created Recipe 6
Recipe Name = ProcTest

getEquipmentRecipeList(itemPath, recipeNameFilter, recipeStateFilter, recipeGroupFilter, includeMasterRecipes)

Syntax

getEquipmentRecipeList(itemPath, recipeNameFilter, recipeStateFilter, recipeGroupFilter, includeMasterRecipes)


  • Parameters

String itemPath - The item path to a production line, cell, cell group or location.

String recipeNameFilter - Optional recipe filter. The filter can contain ? and * wild card characters.

String recipeStateFilter - Optional recipe filter. The filter can contain ? and * wild card characters.

String recipeGroupFilter - Optional recipe filter. The filter can contain ? and * wild card characters.

boolean includeMasterRecipes - If true, returns also master recipes available for a production item.

  • Returns

A list of currently available recipes.

  • Scope

All

Code Examples

Code Snippet

Code
itemPath = "Enterprise\New Site\Packaging\packagingLine1\Filler"
recipeNameFilter = "*e*"
recipeStateFilter = "*odd*"
recipeGroupFilter = "*pending*"
includeMasterRecipes = 1

list = system.recipe.getEquipmentRecipeList(itemPath, recipeNameFilter, recipeStateFilter, recipeGroupFilter,includeMasterRecipes)
if list.size() > 0:
    for recipeName in list:
        print 'Recipe Name = %s' %recipeName
else:
    print "No recipes meet the criteria of the filters:" 
    print "recipeNameFilter = %s "  %recipeNameFilter
    print "recipeStateFilter = %s "  %recipeStateFilter
    print "recipeGroupFilter = %s "  %recipeGroupFilter
    print "includeMasterRecipes = %s "  %includeMasterRecipes

Output

Code
Recipe Name = Manually Created Recipe 5
Recipe Name = Manually Created Recipe 51





Sepasoft MES Module Suite