Obtain a model class from a DataList?
Hi Everybody
I'm developing a simple JMS consumer plugin in JOGET exploiting the AuditTrailPlugin superclass that allows a plugin to work in background. Now I'm facing a problem. When a specific event triggers my plugin, I have to start a process and compile a form. From what I understand, a form is simply an interface usable only by the UI that simplifies the creation of a datalist in the DB, so a plugin cannot compile a form directly, but have to write a row in the datalist.
So here is my problem: how can I obtain a model object from the datalist structure (with getter/setters) in order to write a new row? At the moment I instantiate a ForwRow and use the .setProperty method to set values of the columns given the id, but it's not the best approach, since I could modify columns ids or structure later!
Thanks in advance, any advice will be appreciated