This content has been marked as final.
Show 2 replies
-
1. Re: Query tasks by process context
sbhatti Jul 2, 2009 5:26 PM (in response to sbhatti)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? -
2. Re: Query tasks by process context
kukeltje Jul 2, 2009 6:14 PM (in response to sbhatti)no, there is not. This is one of the usecases that is not easily supported AND performant for all cases.
If it is a 'special' variable, you might consider using it as a businesskey.