[
https://jira.jboss.org/browse/JBPM-2868?page=com.atlassian.jira.plugin.sy...
]
Stephane Malbequi updated JBPM-2868:
------------------------------------
Description:
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 add a new method like 'processDefinitionIdLike' to
TaskQuery object in order to append a where clause like that :
if (processDefinitionIdLike!=null) {
appendWhereClause("task.processInstance.processDefinitionId like
'"+processDefinitionIdLike+"' ", hql);
}
Thanks in advance
was:
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 add a new method like 'processDefinitionIdLike' to
TaskQuery object in order to append a where clause like that :
if (processDefinitionIdLike!=null) {
appendWhereClause("task.processInstance.processDefinitionId like
'"+processDefinitionIdLike+"' ", hql);
}
Another method to add should be : 'assigneeIn' in order to append a where clause
like that :
if (assigneeIn!=null && !assigneeIn.isEmpty()) {
appendWhereClause("task.processInstance.assignee in ...
}
Thanks in advance
Add a new method 'processDefinitionIdLike' to TaskQuery
-------------------------------------------------------
Key: JBPM-2868
URL:
https://jira.jboss.org/browse/JBPM-2868
Project: jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.3
Reporter: Stephane Malbequi
Priority: Minor
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 add a new method like 'processDefinitionIdLike'
to TaskQuery object in order to append a where clause like that :
if (processDefinitionIdLike!=null) {
appendWhereClause("task.processInstance.processDefinitionId like
'"+processDefinitionIdLike+"' ", hql);
}
Thanks in advance
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira