[jboss-user] [JBoss jBPM] - Re: Query tasks by process context

sbhatti do-not-reply at jboss.com
Thu Jul 2 17:26:24 EDT 2009


I got it sort of working using following HQL:
select ti from org.jbpm.taskmgmt.exe.TaskInstance ti , org.jbpm.context.exe.variableinstance.StringInstance si  WHERE  (  ( ti.processInstance.id = si.processInstance.id AND si.name = :_name_number1 AND si.value = :_value_number1 )  OR  ( ti.processInstance.id = si.processInstance.id AND si.name = :_name_assignedTo AND si.value = :_value_assignedTo )  ) with args {_value_number1=1, _name_number1=number1, _name_assignedTo=assignedTo, _value_assignedTo=user0}

But I am not sure if there is a better way to do this?


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

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



More information about the jboss-user mailing list