|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Workflow ActiveX API |
« View previous topic :: View next topic » |
Author |
Message
|
Milesi |
Posted: Tue Apr 16, 2002 7:48 pm Post subject: |
|
|
 Apprentice
Joined: 15 Apr 2002 Posts: 37
|
Hello,
As part of a customized client aplication, I am trying to build a user object for every activity. I want to retrieve info about the person supposed to do the task in first place (This occurs when dealing with backups). I have found in the programing guide that workitem.staff returns an array of userID of all persons associated with the activity that is represented by the item, I assume this only include the users associated with a specific activity after staff resolution is done (And not the backup, or the person the task is forwarded to). My question is can I retrieve a person Object when I have his userID?
If I am doing an activity as someone's backup, can I find in containers who is the person I am doing it for ?
Is it possible to know for whom you are the backup?
Thank you
Cheers,
Thierry
|
|
Back to top |
|
 |
vedbhat |
Posted: Tue Apr 16, 2002 9:07 pm Post subject: |
|
|
 Disciple
Joined: 19 Mar 2002 Posts: 186 Location: Singapore
|
Hi,
Once you retrieve the UserSettings and Logged in User, I guess you can retrieve the a list of UserIDs for whom this person substitutes by calling the method "PersonsToStandInFor".
I hope this will help you to solve your problem.
Regards
Ved
|
|
Back to top |
|
 |
Milesi |
Posted: Tue Apr 16, 2002 9:36 pm Post subject: |
|
|
 Apprentice
Joined: 15 Apr 2002 Posts: 37
|
Thxs ved this helps for a start.
|
|
Back to top |
|
 |
jmac |
Posted: Wed Apr 17, 2002 6:50 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
There is an API available against the ExecutionServer Object persistentPerson(String userid). This will return a Person object. The requestor must have access to the specified person or an authorization exception will be raised. I've not tried this with the ActiveX API, but it works fine with Java.
Use code like this:
Person p = myService.persistentPerson("USERA");
p.refresh(); // If the person doesnt exist this will raise an exception.
// assuming no error, you can issue any person methods against object p.
GOOD LUCK
_________________ John McDonald
RETIRED |
|
Back to top |
|
 |
Milesi |
Posted: Wed Apr 17, 2002 5:19 pm Post subject: |
|
|
 Apprentice
Joined: 15 Apr 2002 Posts: 37
|
Thank you for the answer.
Cheers,
Thierry |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|