Closed Aegid1 closed 4 months ago
Thanks a lot for providing this PR! Would it be possible to sign the Eclipse Contributor Agreement?
Thanks a lot for providing this PR! Would it be possible to sign the Eclipse Contributor Agreement?
Sure! I updated the eclipse validation status.
I see that the CI is failing at the examples. It is possible that you changed something that would break backwards compatibility?
Ah sure! I forgot to adjust the routes.json in the databridge.examples. Thank you for the hint!
Sorry for the delayed response, due to Hannover Fair we were quite busy. Thanks a lot for updating the PR!
To ensure I'm understanding it right, the transformer "jsonataBatteryStatus" would be mapped to "sink://tendobot/BatteryStatus", "jsonataSpeed" to "sink://tendobot/Speed" etc.?
Dont worry :). Exactly! I have just seen that a check was not successful. Do you know why that is?
I have added a PR #308 built upon this PR with an improved datasink mapping configuration to avoid breaking changes
Those changes are now part of #308. Since this PR is already merged I will close this one.
fixes #1
Makes use of multicast() from apache camel to enable multiple sinks in one route
Enables the possibility to use a transformer on every sink in one route with the usage of multicast() and pipeline()
Changes the syntax of the "transformers" keyword in the routes.json from a one-dimensional array to a two-dimensional array -> This ensures that each sink can have its own transformer, whereby successive transformations are also possible
an exemplary configuration of routes.json would be:
"datasource": "MqttConsumerAGV",
"transformers": [["jsonataBatteryStatus"], ["jsonataSpeed"], ["jsonataAbsolutePosition"]],
"datasinks": ["sink://tendobot/BatteryStatus", "sink://tendobot/Speed", "sink://tendobot/AbsolutePosition"],
"trigger": "event"