Widgets/Producer

Recipe Load Widget

Recipe Load Widget

A "Producer" type widget. Recipe Load Widget automatically triggers an event when a recipe is fully loaded into the workspace. This widget is particularly useful for initializing workflows that need to start immediately when a recipe is opened.

 

Outputs

  • Loaded (DataType: Boolean) This port transmits a Boolean value of true when the recipe is fully loaded and ready for execution.

 

Examples

This example uses the Recipe Load Widget to automatically start a Clock Widget when the recipe is opened, initiating a chain of actions without requiring manual input.

Note: To test this example, you need to download or save your recipe locally first. Then you can open it by double-clicking the .kemu file or using the "Import Recipe" option from the "Home" menu in the editor.


Drag the example onto the workspace to explore and experiment!


In this example

  1. The Recipe Load widget triggers automatically when the recipe opens
  2. The Recipe Load event starts the Clock widget (500ms interval)
  3. The Clock widget generate an event every 500ms (twice per second)
  4. Each clock event triggers the Counter widget to increment by 1
  5. The Display widget shows the current count
  6. The Button widget ends the process

Result: When the recipe is loaded, it automatically starts counting up twice per second, displaying each value until stopped with the stop button.

 

📌 Additional Notes

  • The Recipe Load Widget is triggered only once per recipe load
  • It's commonly used as the first widget in automatic workflows
  • This widget is particularly useful when your recipe is exported to Kemu Edge to start a workflow

 

Glossary

  • Boolean

    A data type that can have only two values: true or false. Used to represent logical states like on/off, yes/no, or loaded/not loaded.

  • Kemu Edge

    A standalone runtime environment that allows recipes to run independently outside of the browser, enabling automated workflows and integrations.

  • Recipe

    A collection of connected widgets that work together to perform a specific task or workflow. Recipes can be saved, shared, and executed within the Kemu platform.

  • Workflow

    A sequence of automated actions or processes that are triggered by events or conditions. In Kemu, workflows are created by connecting widgets together in a recipe.