system.recipe.getParentRecipe

Sepasoft MES Module Suite

Description

Get the name of the parent recipe. Returns None if a parent does not exist. Throws an MESObjectNotFoundException if the childRecipeName does not correspond to an MESRecipe.

Syntax

system.recipe.getParentRecipe(childRecipeName)


  • Parameters

String childRecipeName - Name of the recipe.

  • Returns

String parentRecipeName - The name of the parent recipe. 

  • Scope

All

Code Examples

Code Snippet

Code
childRecipeName = 'child recipe name'
parentRecipe = system.recipe.getParentRecipe(childRecipeName)
print parentRecipe

Sepasoft MES Module Suite