Get User tasks based on Priority
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2014 06:46 AM
Hi
I have a requirement where in I want all the user tasks based on multiple priority.
e.g. : I want tasks with priority 2 and 3
TaskQuery interface has method "taskPriority" in which we can pass only single value of priority
Do we have an option/method where in we can pass multiple priority in a single call?
Regards
I have a requirement where in I want all the user tasks based on multiple priority.
e.g. : I want tasks with priority 2 and 3
TaskQuery interface has method "taskPriority" in which we can pass only single value of priority
Do we have an option/method where in we can pass multiple priority in a single call?
Regards
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2014 02:10 AM
Hi Rahul,
In the described case try to use
Another option could be NativeTaskQuery.
Regards
Martin
In the described case try to use
/** Only select tasks with the given priority or higher. */
TaskQuery taskMinPriority(Integer minPriority);
/** Only select tasks with the given priority or lower. */
TaskQuery taskMaxPriority(Integer maxPriority);
Another option could be NativeTaskQuery.
Regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2014 08:53 AM
Hi Martin
Can you provide reference to existing native query which is called for say my tasks or my pooled tasks so that we can add our filters to the same
Regards
Can you provide reference to existing native query which is called for say my tasks or my pooled tasks so that we can add our filters to the same
Regards
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2014 02:50 AM
Hi Rahul.
Native queries supports your own defined queries on the activiti DB.
Usage example can be found here
Regards
Martin
Native queries supports your own defined queries on the activiti DB.
Usage example can be found here
org.activiti.engine.test.api.task.TaskQueryTest#testNativeQuery
.Can you provide reference to existing native queryI do not know whether such an example exists. You can create one.
Regards
Martin
