[jboss-user] [JBoss jBPM] - Re: How to query process instances by process variables

JeanGuyer do-not-reply at jboss.com
Tue Oct 24 05:23:11 EDT 2006


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



More information about the jboss-user mailing list