RunTask without endpoint definition in Elsa Studio #244
Replies: 3 comments
-
To configure different endpoints for the Here's an example of how you might configure the {
"Webhooks": {
"Endpoints": [
{
"EventTypes": ["FoodEvent"],
"Url": "https://localhost:5002/api/webhooks/run-task-food"
},
{
"EventTypes": ["DrinkEvent"],
"Url": "https://localhost:5002/api/webhooks/run-task-drink"
}
]
}
} In this configuration, the workflow server will send webhook requests to the specified URLs based on the event type that is published. Make sure that the For the Please ensure that your external application that handles the tasks is set up to listen to these specific endpoints ( If you need further assistance on how to set up the This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
@sfmskywalker I can't figure out how to do it even with this Glime answer, I need a little tutorial on how to make it works in server and in studio. Thanks! |
Beta Was this translation helpful? Give feedback.
-
To configure different endpoints for the Here's an example of how you can set up your {
"Webhooks": {
"Endpoints": [
{
"EventTypes": ["FoodEvent"],
"Url": "https://localhost:5002/api/webhooks/run-task-food"
},
{
"EventTypes": ["DrinkEvent"],
"Url": "https://localhost:5002/api/webhooks/run-task-drink"
}
]
}
} In this configuration, you define two endpoints within the In your workflows, you will need to ensure that the Please note that the event types ( Remember to update your workflow definitions to publish the correct event types for the This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
Hi, this is the worfklow.
My problem, the issue, is, where can I declare the endpoint that this certain RunTask has to point? Because I have 2 different workflow, the drink and the food workflow. The RunTask of the food workflow has to point to https://localhost:5002/api/webhooks/run-task-food AND the RunTask of the drink workflow has to point to https://localhost:5002/api/webhooks/run-task-drink.
Task-Food will handle FoodEvent, and drink-food will handle DrinkEvent, so this is the reason cuz i want do have two different endpoint.
The Server is the same, so at this moment this configuration will fire the request to the same endpoint, but it can handle only food-event so i can't trigger drink-workflow because it will break.
This is the stupid workflow i'm using as a test:
workflow-1.json
Beta Was this translation helpful? Give feedback.
All reactions