[jboss-dev-forums] [Design of JBoss jBPM] - Re: committing content from our
camunda
do-not-reply at jboss.com
Sat Jan 27 11:26:59 EST 2007
Okay, I have started to transfer our code to Commands. The first thing to say is, that we will need a lot of commands (because for working with a fat client we need a command for every communication with the engine), but I think that is not a problem (and I do not know a good way around that).
I have some questions on code conventions in the jbpm project, I haven't figured it our myself and the JBoss-Website seems to be down today :-(
1) What Exception to use if I get invalid data in a command? The JbpmException?
2.) Where to put Hibernate-Queries? We had to build some additional ones for some circumstances. I have seen you put them into a xml-file. This is good for seperating of concerns but I don't like it to much because you get typos in Classes or package names faster there. But anyway, if I have additional queries, can I add them there? Or write them into the commands (not a good idea I think), or just move the HibernateQuery-class we have to the jBPM code base?
3) Which JDK to use? Can I use generics (so loose JDK 1.4 compability)?
Another question: Shouldn't be every attribute in the commands private? Because in the existing commands all attributes are package local...
And the last question: Where to put concrete questions on the already existing commands. In the sourcecode? Here in the forum? Wiki?
Thanks in advance for the answers and a nice weekend
Bernd
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007207#4007207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007207
More information about the jboss-dev-forums
mailing list