Replies: 3 comments 8 replies
-
Hello @chrisdutz .Appreciate your interest. Karavan Component configuration properties panel generated from Component metadata catalog, ex: AciveMQ Component metadata in Apache Camel: https://github.com/apache/camel/blob/main/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/activemq.json generates the following UI As you could see it supports TextField, Numeric Fields, Boolean Switch, Dropdown, etc. So to make PLC4X configurable, all options should be added to PLC4X Component. |
Beta Was this translation helpful? Give feedback.
-
I guess if someone here could help me with how such a config file would need to look for one driver, I could probably automate that. |
Beta Was this translation helpful? Give feedback.
-
In Camel 4.5 we generate metadata for pojo beans, so you can also explore to have speicific driver beans that can be configured using their own options, and then from the plc4j component choose a drive (or let camel auto-detect if there is only 1 driver bean configured). The karavan can be enhanced to make configuring pojo beans (beans) in its UI able to use that metadata to show the same form UI that it would do for components etc. Then you have the same power. There are the out of the box beans we have in camel 4.5 |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I just wanted to bring to your attention, that in the Apache PLC4X project we just recently did quite some improvements on our API, that now allow tools to introspect a lot more:
We did that to make it possible to create something like an editor or wizzard that should allow people to configure PLC4X connections a lot easier.
Right now I think there's only a text field, accepting a connection string and there is no validation of that or any support on finding if an option was mis-typed or the value has the wrong format.
Unfortunately I am not too deep into Karavan, so me building a ui to utilize these improvements is probably not going to happen any time soon, but I thought I should bring this up here and I'm happy to be of assistance if anyone want's to implement this.
Chris
Beta Was this translation helpful? Give feedback.
All reactions