[jboss-user] [JBoss Seam] - dvd example - get process instance from order id question
jbpmndc
do-not-reply at jboss.com
Fri Jul 21 15:42:43 EDT 2006
In the dvd example a process instance is retrieved using an entity bean's id. Is jBPM aware of all entity beans or how is it aware that there is a process that has an orderId of x value?
ProcessInstance pi = (ProcessInstance) context.getSession()
| .createQuery("select pi from LongInstance si join si.processInstance pi " +
| "where si.name = 'orderId' and si.value = :orderId")
| .setLong( "orderId", order.getOrderId() )
| .uniqueResult();
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960010#3960010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960010
More information about the jboss-user
mailing list