Hi!
I am currently working a lot with the commands. I had one problem for a few times by now:
How to return more than one object as a result?
For example, if I want to load the ProcessInstance but with the logs? The Logs have to be
queried from the database in a seperate call, so I have the ProcessInstance and the
Variables-Map as a result.
Because I don't like the idea to introduce some "DTO" again (which just
holds ProcessInstance & Map) I thought about the possibility to include the results of
a Command in the Command-Object and return the Command in the execute method (new
signature then:
| Command execute(Command command) throws Exception;
|
What do you think?
I think the overhead for returning the parameters again is not so much and the benefit is
to really improve the power of the commands. And to KNOW what is the result of a command
(at the moment it is a Object, that could be everything and is only checked at runtime at
the client with a cast).
So: Opinions to that issue?
Regards
Bernd
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036431#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...