davsclaus opened a new pull request, #30947: URL: https://github.com/apache/camel/pull/30947
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary This PR rewrites 7 texts of camel-bonita: the component description and 6 endpoint options (operation, hostname, port, processName, username, password). The one header (`CamelBonitaCaseId`) was already clear and is not changed. The old texts were short labels such as "Operation to use" or "Name of the process involved in the operation". They did not say that only `startCase` is supported, that the producer calls the REST API under the `/bonita` context path, that `processName` is a search of the Bonita REST API (`GET /API/bpm/process?s=...`) of which the first result is used, or that the producer logs in at `loginservice` with `username` and `password` before each request. The old component description ("Communicate with a remote Bonita BPM process engine.") did not say what the component does. Sources: the Camel code (`BonitaConfiguration`, `BonitaStartProducer`, `BonitaAPI`, `BonitaAPIConfig`, `BonitaAuthFilter`, `BonitaAPIUtil`) and the Bonita BPM REST API that it calls. ### Found, not changed - `processName`, `username` and `password` are not marked `required`, but the producer fails without them: `BonitaAPI.getProcessDefinition` throws `IllegalArgumentException("processName is empty.")`, and `BonitaAuthFilter` throws for an empty username or password. - `username` is marked `security = "secret"`, so it is masked like the password. - There is no option for another context path than `/bonita`. - `BonitaAuthFilter` logs in again before every request (the process search, each file upload and the instantiation), because the client keeps no `JSESSIONID` cookie. - `processName` is sent as the search term `s`, so a name that more processes or versions match can start a case of another process than the intended one. No option selects the process version. - `BonitaConfiguration.setParameters(Map)` is not called anywhere. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (7 texts). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
