system.recipe.getDescendantRecipes

Sepasoft MES Module Suite

Description

Get the names of the recipe's immediate children, or an empty list if none exist. Throws an MESObjectNotFoundException if the parentRecipeName does not correspond to an MESRecipe.

Syntax

system.recipe.getDescendantRecipes(parentRecipeName)


  • Parameters

 String parentRecipeName - The parent name of the given recipe.

  • Returns

List childRecipes - List of immediate child recipes under the given parent recipe name.

  • Scope

All

Code Examples

Code Snippet

Code
parentRecipeName = "parent recipe name"
childRecipes = system.recipe.getDescendantRecipes(parentRecipeName)
for childRecipe in childRecipes:
    print childRecipe

Sepasoft MES Module Suite