We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to specify route, with object properties in beans, the resulting XML route contains [object Object] instead of the object property.
[object Object]
Try to use route e.g.:
- route: id: test-route from: uri: timer:start?period=1000&delay=2000&repeatCount=10 steps: - setBody: constant: Initial message - to: uri: log parameters: loggerName: test - beans: - builderClass: test constructors: objectProperty: {} name: test properties: test: {} type: org.apache.camel.spi.ExchangeFormatter
The result XML route after the switch looks like this:
<camel> <route id="test-route"> <from uri="timer:start?period=1000&delay=2000&repeatCount=10"/> <setBody> <constant/> </setBody> <to uri="log:test"/> </route> <beans> <bean name="test" type="org.apache.camel.spi.ExchangeFormatter" builderClass="test"> <constructors> <constructor index="objectProperty" value="[object Object]"/> </constructors> <properties> <property key="test" value="[object Object]"/> </properties> </bean> </beans> </camel>
No response
The text was updated successfully, but these errors were encountered:
Before doing anything, let's check what's available in the beans constructor and properties.
There's also the possibility to use nested properties like the following:
properties: person.name: John person.lastname: Connor
Sorry, something went wrong.
It seems constructor only works with Map<String, String>
Map<String, String>
@tplevko @lordrip for the properties I can convert object definitions to the inline format. @tplevko would that be sufficient ?
person.name: John person.lastname: Connor
fix(beans-xml-serializer): flatten bean object properties
16b9c7d
fix KaotoIO#2086
06fe654
mmelko
Successfully merging a pull request may close this issue.
Describe the Bug
When trying to specify route, with object properties in beans, the resulting XML route contains
[object Object]
instead of the object property.Try to use route e.g.:
The result XML route after the switch looks like this:
Steps to Reproduce the Bug or Issue
[object Object]
instead of the object propertyScreenshots or Videos
No response
Platform
The text was updated successfully, but these errors were encountered: