This content has been marked as final.
Show 1 reply
-
1. Re: How to query process instances by process variables
jeanguyer Oct 24, 2006 5:23 AM (in response to marcelruff)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.