-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camunda Http Connector Enhancement for 4XX and 5XX errors #4241
Comments
@yanavasileva , Thanks and Regards, |
Hi @Nandanrshenoy,
This generally makes sense, but it's very dependent on the user's business case. In my opinion these two connectors were meant to be very generic on purpose so they cover the most basic use-case, sending and receiving request. You already linked the source code, these connectors can be modified and extended as you like. I wouldn't add the instant incident creation to these connectors. Especially that now it would be a breaking change for existing users. I'd recommend you to customize or extend the connector and add your own requirements. Here you can find more infos about the HTTP Connector configuration. Furthermore, there are some more custom connectors in our camunda-community-hub. You could find something interesting or share your custom connector. With that I'm closing this ticket. -Daniel |
Hi @danielkelemen , Regards, |
@Nandanrshenoy Sounds good to me! |
Hi @danielkelemen , Actual Changes After analyzing the camunda-connect-http-client project end to end, the logic that we are planning to propose would basically be part of the execute method of AbstractHttpConnector class.The execute method intakes the request object and then executes the request on the connector and then provides the connector response. Module Name : camunda-connect-http-client ![]() Two addition connector request exception types are being added to support handling 4XX and 5XX errors. Module Name : camunda-connect-http-client Thanks for all your support. Regards, |
@danielkelemen, Thanks and Regards, |
@danielkelemen , Regards, |
Hi @danielkelemen, @Nandanrshenoy raised a PR. Can you have a look? Best, |
Hi @Nandanrshenoy, |
@Nandanrshenoy, thank you for the contribution! |
Thanks for all the support you have extended @danielkelemen . It was definitely a nice experience for me. |
Dev2QA
|
related to camunda/camunda-bpm-platform#4241 Backported commit 42c77fc8d9 from the camunda-bpm-platform repository. Original author: Shenoy, Nandan <nandan.shenoy@fmr.com>
related to camunda/camunda-bpm-platform#4241 Backported commit 42c77fc8d9 from the camunda-bpm-platform repository. Original author: Shenoy, Nandan <nandan.shenoy@fmr.com>
related to camunda/camunda-bpm-platform#4241 Backported commit 42c77fc8d9 from the camunda-bpm-platform repository. Original author: Shenoy, Nandan <nandan.shenoy@fmr.com>
User Story
Current HTTP connector does not throw an error for 4XX and 5XX errors
The errors needs to be explicitly handled by the modeler through an inline script as shown below.
Functional Requirements (Required before implementation)
An incident needs to be created when ever HTTP connector throws an error for 4XX and 5XX errors
Technical Requirements (Required before implementation)
Since this code of handling HTTP response is repeatable and reusable, it would be good to modify default behavior of http connector to throw a bpmnError in case of API call failures so that modeler can handle them as desired.
This can be made configurable through an engine setting by adding a new flag called throwErrorForHttpConnector. By default, this flag would be false, where modeler would have to explicitly handle such Errors. If marked true, then the feature that is being built to handle such errors should be enabled.
Limitations of Scope
The scope of this fix is limited to just http connectors
Hints
Links
The following camunda Http and Soap related connector code needs to be modified: https://github.com/camunda/camunda-connect
Breakdown
Dev2QA handover
Tasks
The text was updated successfully, but these errors were encountered: