Manually instantiate managed type in rule


I am creating a plugin that has a model consisting of two managed types A and B, where A contains a property of type B. The property should be mutable, so I created a getter and a setter for it.

The property should be initialized with an object of type B in the rules, and users of the plugin should be able to set a new value of type B or any subclass of B using the model DSL.

My problem is now that I need to create the instance of B to use as default somewhere in my plugin rules. How can I do this?


1 Like