ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » display owner first and last name in listviewer.jsp

Post new topic  Reply to topic
 display owner first and last name in listviewer.jsp « View previous topic :: View next topic » 
Author Message
pingwf
PostPosted: Wed Dec 03, 2003 9:14 am    Post subject: display owner first and last name in listviewer.jsp Reply with quote

Novice

Joined: 09 Dec 2002
Posts: 23

I want to display workitem owner full name instead of displaying owner userID. What would be the best way to do this?

I am getting person object of workitem
and then getting first and last name. Then i am displaying it on JSP.

Code:
ExecutionService service = ReqContext.getExecutionService();
Person per = service.persistentPerson(userID);   
firstName = per.firstName();
lastName = per.lastName();

It works fine, but I have issues with performance. it takes 15 - 16 sec to load 200 workitem. where as with out this code it takes 2 - 3 sec to load same number workitems.

Any ideas how to do this with more efficient way?

Thanks in advance!!!
pingwf
_________________
IBM Certified Solutions Expert - MQSeries Workflow
Back to top
View user's profile Send private message MSN Messenger
jmac
PostPosted: Thu Dec 04, 2003 5:00 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

This is not going to perform well at all, you are doing way too many client-server calls. The only way to possibly improve this would be to keep a table that relates the owners to their First & Last Names
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
MQRR
PostPosted: Tue Mar 16, 2004 8:35 pm    Post subject: Reply with quote

Centurion

Joined: 10 Aug 2003
Posts: 110

Hi jmac,
is this still the solution that you recommend or are there any other options that have come up since this has been posted last time.
And one more question if I am trying to retrive the the process starter that the workitem belongs to, I am getting authorization error if i am not logged in as the process starter. (by the way I am trying to display the process starter for each workitem, on the jsp using the person object ). My question is, is there any way I can get the process starter ID even if I am logged in as different user.
Thanks in advance.

This is open question if anyone have suggestions I will be more than happy to take them
MQRR
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Mar 18, 2004 5:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

MQRR wrote:
I am trying to retrive the the process starter that the workitem belongs to, I am getting authorization error if i am not logged in as the process starter.


I really don't have all the information to be sure so I am assuming that you mean you are trying to retrieve the Person object of the Process Starter. If this is the case, you can only retrieve a person object other than your own if you have Staff authorization.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » display owner first and last name in listviewer.jsp
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.