davsclaus opened a new pull request, #23813: URL: https://github.com/apache/camel/pull/23813
## Summary - Adds a new built-in `group` variable scope alongside the existing `exchange`, `route`, and `global` scopes - Group variables use the syntax `group:groupId:variableName` (e.g., `group:teamA:threshold`) - Groups are user-managed by convention — the group name is picked in the variable key, no configuration needed - Supports initial variable configuration via `application.properties`: `camel.variable.group.teamA.xxx = value` ## Changes - **`VariableRepositoryFactory`** — added `GROUP_VARIABLE_REPOSITORY_ID` constant - **`GroupVariableRepository`** (new) — in-memory group-scoped variable repository modeled on `RouteVariableRepository`, with `getGroupIds()` API and wildcard removal (`group:teamA:*`) - **`DefaultVariableRepositoryFactory`** — registers group repo as a built-in alongside global and route - **`MainSupportModelConfigurer`** — supports `camel.variable.group.` prefix in properties initialization - **`variables.adoc`** — documented group scope in repository list, Java API examples, and properties configuration CLI (`camel get variable`), developer console, JMX, and TUI pick up the group repository automatically via `BrowsableVariableRepository` — no changes needed in those modules. ## Test plan - [x] `GroupVariableRepositoryTest` — 14 unit tests covering set/get, isolation, wildcards, `getGroupIds()`, error cases - [x] `SetGroupVariableTest` — 4 integration tests covering route DSL, group isolation, Simple language access, cross-route sharing _Claude Code on behalf of Claus Ibsen_ -- 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]
