LoadRecipe step


The LoadRecipe step allows users to switch recipes at runtime from the operator view.

To set this up, you must add the LoadRecipe step to a subflowchart and then link the operator view to one of the following inputs of the step:

  • The Recipe Name input. Sets the name of the recipe to load.

  • The Recipe ID input. Sets the ID of the recipe to load.

For more information, see the Setting up an operator view to manage recipes section earlier in this chapter.

When you switch recipes, any changes that you have made to the current recipe using the Store step or Reconfigure step will not be automatically saved. This data is only saved when your project terminates properly, or when a SavePersistentData step is executed. If you need to save changes made to a recipe, ensure that a SavePersistentData step is executed soon after the changes are made (for example, at the end of a subflowchart used to modify recipes from the operator view). For more information, see the Persistence and the SavePersistentData step section in Chapter 57: Persistence.