--- alias: user-guide-automation-task-mes-recipelistrequested tags: - automation tasks description: "This task manages recipe list requests from the MES system via a message bus" --- # Recipe List Requested :iot-recipelistrequested-lg:{style="font-size:100px"} This task implements Recipe List Requests from the MES system. ![1562162565533](./images/image7.png) ## Inputs | Name | Data Type | Description | | ---------- | --------- | ------------------------------------------------------------ | | recipeList | `Object` | List of Recipes to be sent to the MES (this is the reply) and it is expected to send an array with the names of the recipes. | | Activate | `Any` | Activate the task | ## Outputs | Name | Data Type | Description | | --------------- | --------- | ----------------------------------------------------------- | | onRecipeRequest | `Object` | Emits true when the MES sends a request for the recipe list | | Success | `Boolean` | Triggered when the task is executed with success | | Error | `Error` | Triggered when the task failed for some reason | ## Settings On the `General` tab, you have the usual settings and the following settings: | Name | Data Type | Default | Description | | --------------------- | --------- | -------------------------------- | ------------------------------------------------------------ | | AutoActivate | `Boolean` | `true` | Auto activates the event listeners for the subject. | | Reply Timeout | `Integer` | 60000 | Timeout between receiving a request from the MES for the recipe list and replying with the recipe list | | Recipe List Requested | `String` | `RecipeManagement.GetAllRecipes` | Subject used to communicate with the MES | ![1562163197131](./images/image8.png) ## Behavior This task is responsible for receiving an MES request for the recipe list, via message bus and replying with a recipe list. ## Remarks {% include-markdown 'includes/pages/automation_zones_note.md' %}