I have used the claim check pattern by having just the business id in my workflow. Now in the task list we have the following requirement
- display business data along with the tasks data.
- display tasks for a user based on his security group.
- Tasks should be sorted based on business data.
- Paginate the tasks which are sorted based on the business data.
To fulfill these requirement, we have to first hit the BPEDB using HTMAPI to get all the task that belongs to the user, and then query the Application's DB to fetch the business data, sort them and pick the results for the first page (pagination).
I see a performance hinderance since we have to load all the tasks from BPEDB first and then sort / filter the necessary tasks based on the business data. Please let me know if there is a better approach for this situation.
This topic has been locked.
2 replies Latest Post - 2013-02-13T10:05:49Z by Zee04
Pinned topic Claim & Check Pattern: providing a human task list view with business data
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-13T10:05:49Z at 2013-02-13T10:05:49Z by Zee04
Ranjith_SC 270005QKQ62 PostsACCEPTED ANSWER
Re: Claim & Check Pattern: providing a human task list view with business data2013-01-16T15:33:58Z in response to Ranjith_SCFor the benefit of future visitors of this thread, I am pasting a response I got from an author.
I posted the same question to the author of the article : "http://www.ibm.com/developerworks/websphere/library/techarticles/1106_jenny/1106_jenny.html".
Below is the conversation details - My question is yet to be answered. If someone else have an solution, please post.
Conversation with the Author :
The tasks are not loaded all at once. Listing 12 highlights how skipTuples and threshold are passed to the HTM query call to only retrieve the HTM tasks currently visible to the user. Let’s say you have a page of 20 entries each. In the first query you pass a value of 0 for skipTuples (threshold will always be 20). This retrieves the first 20 tasks.
When the user navigates to the next page you pass skipTuples = 20. This retrieves task 21 - 40, etc. If, for example, the user jumps to page 30 (using the UI controls) you pass skipTuples = 580 (29 pages times 20 tasks) to retrieve tasks 581 - 600, and so forth.
Along with the tasks that are shown in any page, you only fetch the related business data. In summary, you always load just what is needed for a selected page, not the full list.
Does this answer your question?
Posted by 33KU_Walter_Jenny on 14 January 2013
Thanks for your response. I have used the approached you suggested in my earlier projects and it works great. In our new project, we have a new requirement - "Tasks should be sorted based on business data." so if we have 1000 tasks. I need to top 20 based on business data and not based on the skipTuples.
Hope it is clear.
Thanks again & appreciate your guidance.
Posted by Ranjith_SC on 15 January 2013
Zee04 270004E9AP2 PostsACCEPTED ANSWER
Re: Claim & Check Pattern: providing a human task list view with business data2013-02-13T10:05:49Z in response to Ranjith_SCHi Rajnith,
I have the same requirements as you. Did you find the solution to your problem?
I need to call the Human Task API using EJB in java. I have gone over the documentation but I just couldn't grasp it. Actually I never came across EJB before. Could someone point me to a basic tutorial on how to use it to get the task list, open the task and complete it by providing output in a simple manner from how to pass the login information to the process server and then get the tasks for that particular user assuming I'm developing using NetBeans and my process server resides on a remote server.
I need to do the above, could you please help me with that since I'm not very good with Java.
Thanks in advance.