[rules-users] Designer: How to assign/map attributes inside complex objects?

xmithj xmithj at gmail.com
Tue Aug 14 01:27:07 EDT 2012


The *Editor for Data Assignments* allows to map a *From Object* to *To
Object*. Very nice! However attributes inside complex objects are not shown
preventing me from map to them. Let me clarify:
My *To Object*  represents a *Person* object and has two attributes: *name*
and *surname*.
These 2 attributes are of type String and public (exposed through getters
and setters). But the* Editor for Data Assignments* only shows the *Person*
object (doesn't show its attributes), preventing me from map my * From
Object* to Person.surname.

I also tried to bypass the *Editor for Data Assignments* by writing directly
into the *Assignments* property something similar to this: 
recordedName -> Person.surname
but I get an exception when building the package.

Is there any work around to achieve these type of assignment? Will this
functionality be built in Designer's  *Editor for Data Assignments* future
release?
Thanks for help.



--
View this message in context: http://drools.46999.n3.nabble.com/Designer-How-to-assign-map-attributes-inside-complex-objects-tp4019111.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120813/44c7aa34/attachment.html 


More information about the rules-users mailing list