Custom Parameter Visibility Rule Conditions

Hi,

we are currently trying to extend the

knime.extension.Condition

with a

IsNotEmpty

class, which should check if a value of a Parameter in a ParameterGroup is not empty.

However, we are not quite sure how the

to_dict

method works. The predefined

OneOf

condition returns a dict with a

oneOf

key and a list of

{"const": value} 

pairs. But how is that used?

Thank you!