Author |
Message
|
pingwf |
Posted: Wed Aug 20, 2003 10:26 am Post subject: API for Person |
|
|
Novice
Joined: 09 Dec 2002 Posts: 23
|
Is there any JAVA API available to get details (like first name,last name) of a person (userID) from Workflow runtime service.I have a requirement to show user actual name instead of user ID in webclient.
Thanks
Deepak _________________ IBM Certified Solutions Expert - MQSeries Workflow |
|
Back to top |
|
 |
Ratan |
Posted: Wed Aug 20, 2003 10:30 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Yes, there is. Take a look at the Person Object. _________________ -Ratan |
|
Back to top |
|
 |
pingwf |
Posted: Wed Aug 20, 2003 2:01 pm Post subject: |
|
|
Novice
Joined: 09 Dec 2002 Posts: 23
|
Thanks Ratan, I figured out the API to access Person details.
But is there any ways we can find out WF User ID from runtime server if the First Name and Last Name of PERSON is known. _________________ IBM Certified Solutions Expert - MQSeries Workflow |
|
Back to top |
|
 |
Ratan |
Posted: Wed Aug 20, 2003 2:17 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
I am not clear what you are asking for.
If you are asking if you want to figure out the UserID just by FirstName and LastName, it is not possible because they are not unique attributes, and there is not API to my knowledge to do this.
If you want to know the logged in users UserID, there is an API call for that. _________________ -Ratan |
|
Back to top |
|
 |
vennela |
Posted: Wed Aug 20, 2003 5:31 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Deepak:
To get the UserId using the FirstName and LastName you can query the database. But
1. IBM will not support this
2. Duplicate results (ofcourse Ratan mentioned this).
I would come up with a better solution unless this is absolutely needed. That begs the question of:
"Why do you need a Workflow UserId based on First Name and Last Name". Is it for some sort of lookup? Ususally, the user information in a corporate should be in some Database or LDAP server or something like that. This is what you may use to build the PERSONS list in WMQWF. It is not a good idea to have different userids across different domains. So most likely you will have the same userid in Workflow too. That should be your source for looking up the UserId.
Anyway Workflow APIs will not provide anything for what you want to achieve. |
|
Back to top |
|
 |
pingwf |
Posted: Thu Aug 21, 2003 11:46 am Post subject: |
|
|
Novice
Joined: 09 Dec 2002 Posts: 23
|
Thanks for all reply.
Quote: |
That begs the question of:
"Why do you need a Workflow UserId based on First Name and Last Name". |
Just wanted to know if one can query workflow runtime for ID lookup with First Name and Last Name Info.
There is a System/Application (not LDAP) which takes care of all employee's ID, right now we create same user ID in MQWF seperately each time a new employee joins. Is there any way I can integrate the MQ Workflow with the System which has all employee user ID information? _________________ IBM Certified Solutions Expert - MQSeries Workflow |
|
Back to top |
|
 |
Ratan |
Posted: Thu Aug 21, 2003 12:45 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
There is a way, but that depends on how badly you need it. If you were using LDAP you could have used LDAP bridge.
The other way is have a process to create a person. this process (P1) should generate the FDL and import it into WF. When your system gets a new user have it put a request XML for P1. _________________ -Ratan |
|
Back to top |
|
 |
|