This content has been marked as final. Show 2 replies
Actually it is pretty simple. The data model in the Wiki helped a lot to see it.
Here is the query:
Query query = session.createQuery( "select proc " + "from org.jbpm.graph.exe.ProcessInstance as proc, " + " org.jbpm.context.exe.VariableInstance as var " + "where var.processInstance = proc and " + " var.name = 'customer' and var.value = 'Smith'");
and now some good indexes :-)