What is the best way to define an entity with Array of values for an attribute as below TestEntity name (String) desc (String) types (String) Also want to know how do I populate values for such entities in Java action and return the values to app and show on page
Here is the link to the runtime api documentation.
What are you trying to accomplish? Any reason why you can't do what Ronald suggested, and use a microflow?
You cannot use arrays/lista as attribute. Instead use associations in the domain model. It is just a one to many association between two entities which is conceptually the right way to model what you want to accomplish. Furthermore only use java as a last resort.