Hi. I have a bpmn model in which I want call a rest API from a task, e.g., http://thirdPartyWebpApp/Success.
Can anyone tell me the steps from a-z?
I prefer to use javasctipt to do this, if is possible. not any java code or other languages. In addition I’m using ‘camunda-bpm-tomcat-7.13.0’ version.
thanks.
Hi @M_Azizi ,
You can use built in http-connector. Refer HTTP Connector | docs.camunda.org for more information. Provide basic parameters like URL, method (GET/POST), body , headers etc. Still you want to use javascript , you can create a service task and write the code to invoke REST API in javascript.
Regards,
Prasad
@M_Azizi You can write a javascript code in Script Task activity to invoke external api calls.
Note: Usage of Http Connector is not recommended !!!
thanks @aravindhrs . I’ll try it.
thanks @prasadps for quick response. I’ll try it.
1 Like
@M_Azizi Did you able to call the third-party rest-api with inline javascript
can you able to share the sample code for same??