This content has been marked as final. Show 1 reply
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.