Dr. Stefan Reisner wrote:
bpm4struts does not seem to support complex types being passed as parameters in transitions from <<FrontEndView>>s.

When I changed my parameter type from String to some object with multiple attributes, I guess I was expecting the <<FrontEndView>> to render a form that would let me enter each of the object's attribute values. But all I got was a single text field and an IllegalArgumentException (argument type mismatch) upon submitting the form.

Now I understand that there are considerable ramifications (what about reference members? what about collection members?). Nonetheless, even with some reasonable compromises it would be a nice feature, wouldn'it it? Are there any plans into that direction?


I guess it would be possible to allow passing <<ValueObject>> classes over transitions as event parameters (page variables already support any type), it could be possible to add tagged value to the attributes and have the cartridge detect to construct the form


Question, suppose the ValueObject contains another ValueObject, would the cartridge need to 'flatten' the form to just contain every attribute found in the recursion ?

Now the big question, it might seem a little far-fetched (not for sensitive viewers): What if the ValueObject contains an attribute of the same type as the ValueObject itself ? How would the cartridge resolve that.

I'm not sure if it can be done in a nice way (remember, when you submit the form you're just sending plain String instances to the server, Struts simply can't resolve any complex object from it .. so modeling it would not represent what is actually happening) .. any idea about this ?

If you can answer these questions you can file an issue in JIRA and I'll take a look

-- Wouter

ps: nice idea though, I hope there's a way to do it


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to