camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.11k stars 1.55k forks source link

Configure Apache HTTP client in Java External Task Client #2423

Closed ThorbenLindhauer closed 10 months ago

ThorbenLindhauer commented 4 years ago
This issue was imported from JIRA: | Field | Value | | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | JIRA Link | [CAM-12233](https://jira.camunda.com/browse/CAM-12233) | | Reporter | NYBzR2x
What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.
| | Has restricted visibility comments | true|

User Story (Required on creation):

I can configure a socket timeout at the external task's httpClient, so once the timeout is reached an exception gets thrown and therefore the thread gets freed and the external task client continues operation (while logging the corresponding exception).

Functional Requirements (Required before implementation):

Technical Requirements (Required before implementation):

Limitations of Scope (Optional):

Hints (Optional):

Links

Breakdown

### Pull Requests
- [ ] https://github.com/camunda/camunda-bpm-platform/issues/3944
- [ ] https://github.com/camunda/camunda-bpm-platform/issues/3945
- [ ] https://github.com/camunda/camunda-bpm-platform/issues/3946

Dev2QA handover

tmetzke commented 1 year ago

An additional option before we expose the internal HTTP client we use: Switch to the new Java HTTP Client and move the language level to Java 11.

Benefits:

Drawbacks:

tasso94 commented 1 year ago

Note to DRI: @yanavasileva is interested in doing the review for this.

yanavasileva commented 10 months ago

Don't forget to adjust the version labels.

danielkelemen commented 7 months ago

Dev2QA

Run the Order Handling example, customize the HTTP Client using the new feature (add timeouts, proxies etc.) and verify that the client was initialized accordingly.