I use something like that :
Query query = this.procMgr.getSession().createQuery("select vi from
org.jbpm.context.exe.VariableInstance vi where vi.name = :varname and
vi.value=:varvalue");
| query.setString("varname", varName);
| query.setString("varvalue", varValue);
| List<VariableInstance> lstVarInstances = query.list();
Of course , you need to make a join on ProcessIntance for your needs.
You don't have to put it in hibernate.queries.hbm.xml unless you want to.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980307#3980307
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980307
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user