Executions listener

Is it possible to make a Get request to an Endpoint using an execution listener in Camunda 7?

Hi @Roger and welcome to the forum,

It’s technically possible, if you write the listener using JavaDelegates.
I’m wondering whether execution listeners are the appropriate solution for your use case.
What the purpose of the execution listener? Why don’t you use a service task?

Context
I have a model that has several service tasks, I also have an API backend in .net 6 that solves the service tasks, my intention through the service listeners is that when the external task is reached, it makes a get call to the api so that I gave the solution to the external task.

The example in the image gives me this error
Cannot instantiate process definition MsgFoundationVfinal:28:4a0165d4-d950-11ed-8a14-0242ac110004: Unable to evaluate script while executing activity ‘Activity_0we6xw1’ in the process definition with id ‘MsgFoundationVfinal:28:4a0165d4-d950-11ed-8a14-0242ac110004’:org.graalvm.polyglot.PolyglotException: ReferenceError: fetch is not defined [ start-instance-error ]