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

Tihomir Surdilovic tsurdilo at redhat.com
Thu Aug 16 09:44:25 EDT 2012


Yes this is something community is asking for and we are looking into 
right now. If you want to join us on IRC ( http://www.jboss.org/jbpm/irc 
) and I'd be glad to talk to you about this in more details too if it is 
something you would like to for example work on and help with :)

Thanks

On 8/14/12 1:27 AM, xmithj wrote:
> 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: Designer: How to assign/map attributes 
> inside complex objects? 
> <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 
> <http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html> at 
> Nabble.com.
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120816/f0375b12/attachment.html 


More information about the rules-users mailing list