[jboss-user] [jBPM] - TaskQuery - Find all tasks of any version of a process definition
Stephane Malbequi
do-not-reply at jboss.com
Wed May 19 11:45:01 EDT 2010
Stephane Malbequi [http://community.jboss.org/people/smalbequi] created the discussion
"TaskQuery - Find all tasks of any version of a process definition"
To view the discussion, visit: http://community.jboss.org/message/543897#543897
--------------------------------------------------------------
Hi,
it's not possible to create a task query to find all tasks of all versions of a specific process because TaskQuery append a where clause with a = operator and not a like operator
if (processDefinitionId!=null) {
appendWhereClause("task.processInstance.processDefinitionId = '"+processDefinitionId+"' ", hql);
}
may be, it's a good idea to use a like operator instead of = operator and let the developper the possibilty to use the api like that
taskQuery.processDefinitionId("my-process-%");
*Best Regards*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/543897#543897]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100519/db570423/attachment.html
More information about the jboss-user
mailing list