I have created a simple java class having the method whose path i have given in URL in CONNECTOR tab ,but i dont want to include any of the camunda dependency for creating the connecter in my spring boot java class ,since i am new to camunda can you please suggest some way?
When you are familiar with java & spring boot, and new to camunda, I would suggest that you stick to the default, which is implementing the JavaDelegate interface with your java class and referencing it via delegateExpression in the modeler … what you are trying could somehow work … but it’s definitely a very complicated and advanced way of achieving the same result … don’t block your camunda success story by sticking to this.
Note: If you want to continue on that road: you will have to expose your class as a RestController … otherwise you will not be able to access it via the http connector.
yeah i am trying to do the same ,i am using restcontroller class and have implemented a simple GET method that returns a “string” and this methods’s path i have provided in connector URL but when i am trying to hit the API it is throwing following error-
HTTP Status 500 – Internal Server Error
Type Exception Report
Message org.camunda.connect.ConnectorRequestException: HTCL-02007 Unable to execute HTTP request
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Also Another doubt, if from my java class i am sending response such as “ACCEPTED” when the values are correct and “DECLINED” when the values are wrong in “payload” to the “output parameter” of my http-connector.
how do i set this condition so that when the response comes as DECLINED my token does not move forward and stays there only(in send task).