Hi
I've got a set of IDLs which I use to create a dynamic data tree in Java which I can then edit and publish the various topics. This has been working well for years until someone decided that unions of structures would be a good idea. I used the examples for unions of simple types as a basis for changing the discriminator (there appear to be no examples of complex types) and my code looks like this...
discriminatorType = dynamicDataInstance.get_type().discriminator_type();