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

marcelruff do-not-reply at jboss.com
Tue Oct 24 04:41:19 EDT 2006


Olá,

how can i query all process instances which contain
a specific process variable like "givenName"="marcel"?
(an entry in JBPM_VARIABLEINSTANCE).

Is there a convenience method to do so or do i need to
create my own queries in hibernate.queries.hbm.xml?

And then access it with something like

---------------------------
org.hibernate.Session session = jbpmContext.getSession();
org.hibernate.Query query = 
     session.getNamedQuery("MarcelsSpecial.findByVariable");
query.setEntity("NAME_", "givenName");
query.setEntity("STRINGVALUE_", "marcel");
query.list();
---------------------------

thanks for some enlightenment,

Marcel



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980290#3980290

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980290




More information about the jboss-user mailing list