Hello
I would like to send a REST request to some external address (e.g. “mysite.com/rest
”) , together with some query parameters or body attributes and then I want to be able to take some values from the response and set them in some variables for the following tasks in the process.
Which is the easiest way to do this? Should I use a script task or a service task?
If there is an example of similar call somewhere, it would be most helpful.
Thanks in advance
1 Like
Hi @jaxx ,
The easiest way to invoke a REST service in your process is with a Service Task.
You have an example here: Camunda Example: REST Service Task
Hi Raul
Thank you for your reply
I have installed Camunda Run platform. How can I add “Connect” and “Spin” dependencies there?
Thank you?
I am using Camunda Run
I found similar files in the full Camunda BPM distribution in the /lib folder.
I guess I have to take from there all files containing “spin” or “connect” in their names?
I would suggest you build an external task to make the call.
That way you wouldn’t need to change the Camunda Run installation in any way.
If you want you can take a look at this example for reference.