Use http-connector to deploy to camunda from modeler

I am using Camunda tomcat 7.12 and trying to get a response from REST url via GET method. I tried the https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/rest-service example. I am able tom deploy using postman “http://localhost:8080/engine-rest/deployment/create” but while starting the process “localhost:8080/engine-rest/process-definition/key/holiday/start” it is giving me error …
{
“type”: “ConnectorRequestException”,
“message”: “HTCL-02007 Unable to execute HTTP request”
}

Please help me proceed further. I do not have any idea if I am doing it correctly.

@babluchandran connectors wont support multi-part form data to post. Instead you can use,

  • Deploy feature from camunda modeler
  • Design a process to lookup the repository/filepath and deploy
  • Use postman to deploy it
  • Design a angular/any UI form to submit POST multipart form data request via camunda rest api.

Hi @aravindhrs, thank you, your response is much appreciated. Could you help me guide on how the steps needs to be executed?
If possible please share with me any guide or reference document that I can follow.

Design a UI form and submit the request to the camunda rest api Post Deployment | docs.camunda.org

Hi @aravindhrs,
sorry, i did try the deployment via postman. I will describe the steps that I have done, please correct me where I am going wrong.

I am configuring the connector details as below.

The deployment to camunda is also success.

I am able to see the process in camunda cockpit.

Where can I get the REST output? Please help.

Hi @babluchandran,

you can get the Output with this REST call: https://docs.camunda.org/manual/7.12/reference/rest/history/variable-instance/get-variable-instance-query/.

If you have the processInstanceId at hand, you can add it as a query parameter.

Hope this helps, Ingo

Hi @Ingo_Richtsmeier,
Thank you for your response. Sorry I am very new to Camunda, please help me configure the query parameter in camunda modeler. Any screen shots if any will be much useful. Thanks in advance, Bablu.

Hi @babluchandran,

no, Camunda Modeler is not the tool to execute rest services.

To check that the response is saved in the engine (and in the database) you should use a REST client like Postman or curl or SoapUi or… (Camunda Cockpit Enterprise Edition with the history view)

Hope this helps, Ingo

@Ingo_Richtsmeier,
Sorry if I am confusing you. My requirement here is that I want to configure a REST service in camunda using http-connector and use the output of this REST service to configure other REST services.
This example https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/rest-service seems to match my requirement. Please help me run the same in camunda. I got error last time “HTCL-02007 Unable to execute HTTP request [ start-instance-error ]”

Hi @babluchandran,

the example you mentioned is desigend to work on the prepackaged tomcat distribution that can be downloaded here: https://downloads.camunda.cloud/release/camunda-bpm/tomcat/7.12/camunda-bpm-tomcat-7.12.0.zip.

If you package the example with mvn clean package and copy the .war file from the target directory of your project to the webapps folder of the unzipped distribution, you can run the example with the help of the tasklist.

Please follow the steps mentioned before.

Hope this helps, Ingo

Hi @Ingo_Richtsmeier,
The packaging of the application is .jar and I placed the generated package in webapps folder of the unzipped distribution. How do I run the example using tasklist?

How to create a .bpmn file using camunda modeler which will pass the output of one REST service to input of other REST service.
Please share any samples (bpmn) having similar setup.

@Ingo_Richtsmeier,
Could you please help on this issue. I am trying the GetHoliday example that I mentioned (camunda-bpm-examples/servicetask/rest-service at master · camunda/camunda-bpm-examples · GitHub) .
I am deploying the process using postman and the process is visible in camunda cockpit, but when starting the process it is showing not able to parse the .js

It seems like the js file:


is not part of your deployment. Is it?

Which Camunda setup are you using? Prepackaged, spring boot,…? If you are ok with Java and Spring, then this example may be more suitable than the connector:

If you prefer to work with Camunda without java knowledge then our newest deployment option (still in alpha) may be interesting for you going forward:
https://docs.camunda.org/manual/latest/installation/camunda-bpm-run/