[jboss-user] [JBoss jBPM] - Re: how to retrieve task instance/process instances in a spe

Olivier_Debels do-not-reply at jboss.com
Mon Aug 14 04:16:28 EDT 2006


I think it is much cleaner to just add your own queries.

It's rather easy if you just do it the same way as it is done in jbpm.  Just create your own extra queries file and make sure it is loaded in your hibernateSessionFactory (by adding it in your hibernate.cfg.xml).

By doing this you can extend the jbpm stuff with your own queries without the need to change anything to the internal queries or mappings.

Then you can write some classes which shield you from the hibernate usage.  You could f.e. add a new service or provide your own implementation for an existing one (by putting it in your own jbpm.cfg.xml).

Hope this helps,

Olivier.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964901#3964901

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964901



More information about the jboss-user mailing list