Order mytasks dynamically by priority
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2014 07:20 AM
Hello,
I am trying to figure out what i would need to customize to order the myTasks page by priority automatically when a user goes to their mytasks page.
What i would like is to order it by high priority down to low priority.
Has anyone done this before? If anyone has any ideas i would really like to hear them.
I have seen in the alfresco.war file there is a java file which is called TaskInstanceget and it uses a comparator to compare tasks by workflow in ascending order.
I am going to try to modify that with a number comparator based off of workflow priority, but that is the only thing that i can think of to change.
Any help is greatly appreciated.
Thanks!
I am trying to figure out what i would need to customize to order the myTasks page by priority automatically when a user goes to their mytasks page.
What i would like is to order it by high priority down to low priority.
Has anyone done this before? If anyone has any ideas i would really like to hear them.
I have seen in the alfresco.war file there is a java file which is called TaskInstanceget and it uses a comparator to compare tasks by workflow in ascending order.
I am going to try to modify that with a number comparator based off of workflow priority, but that is the only thing that i can think of to change.
Any help is greatly appreciated.
Thanks!
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2014 02:05 AM
Yes, what you are thinking is the way to go. Just override that java class and implement your own comparator.
Other option is to filter tasks in ftl before rendering (if you are good at javascript
)
Other option is to filter tasks in ftl before rendering (if you are good at javascript

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2014 06:22 AM
I have a suggestion…
The priority is a non mandatory field.
Default one is medium.
If you are planning to sort the tasks by priority, then make it as an mandatory field.
So that, people gives the priority responsibly…
When all the tasks are listed in medium priority, there is no meaning in sort ( This happens when people do not give preference to priority)
The priority is a non mandatory field.
Default one is medium.
If you are planning to sort the tasks by priority, then make it as an mandatory field.
So that, people gives the priority responsibly…
When all the tasks are listed in medium priority, there is no meaning in sort ( This happens when people do not give preference to priority)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2014 07:40 AM
I edited the java file but i am having trouble figuring out how to deploy it into a war file (from eclipse) in order to put it into my alfresco server to try it out. Any ideas?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2014 11:56 PM
You can simply create a jar file by using export as jar functionality of eclipse and place that jar under <TOMCAT_HOME>/webapps/alfresco/WEB-INF/lib
Also you need to replace entry of orinal class in context file with your new class.
Also you need to replace entry of orinal class in context file with your new class.
