Nashorn-based Conditional Component
This component is deprecated as of Kura version 5.3 since no more available on Java 17.
The Conditional component is a multiport-enabled component that implements the if-then-else logic in the Wire Composer. It is provided by default in every Kura installation.
![nashorn-conditional-component-example.png 3572](https://files.readme.io/f27ea63-nashorn-conditional-component-example.png)
In the image above a simple usage example of the Conditional component: a timer ticks and the envelope is received by the Conditional component. The message is then processed and can be sent downstream to the logger component (then port) or to a publisher (else port).
The choice between the two ports is performed based on a condition expressed in the Conditional component configuration.
![nashorn-conditional-component-conf.png 2928](https://files.readme.io/0dc8b80-nashorn-conditional-component-conf.png)
Updated 8 months ago