--- alias: user-guide-automation-task-mes-recipebodyrequested tags: - automation tasks description: "This task handles recipe body requests from the MES system, emitting relevant data" --- # Recipe Body Requested :iot-recipebodyrequested-lg:{style="font-size:100px"} This task implements Recipe Body Requests from the MES system. ![1562164008993](./images/image10.png) ## Inputs | Name | Data Type | Description | | ---------- | --------- | ------------------------------------------------------ | | recipeBody | `Any` | Recipes Body to be sent to the MES (this is the reply) | | Activate | `Any` | Activate the task | ## Outputs | Name | Data Type | Description | | ------------------- | --------- | ----------------------------------------------------------- | | onRecipeBodyRequest | `Object` | Emits true when the MES sends a request for the recipe body | | recipeName | `String` | Emits the recipe name that MES wants the body of | | 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 BodyRequested | `String` | `RecipeManagement.GetRecipeBody` | Subject used to communicate with the MES | ![1562164223705](./images/image11.png) ## Behavior This task is responsible for receiving an MES request for the recipe body, via message bus and replying with a recipe body. ## Remarks {% include-markdown 'includes/pages/automation_zones_note.md' %}