Author |
Message
|
tsrisudh |
Posted: Thu Aug 18, 2005 12:40 am Post subject: workitem start user authorization |
|
|
 Centurion
Joined: 11 Aug 2005 Posts: 113
|
I am trying to write my own client programs to start workitems.
I logon to the service with one common user(MYAPPADMIN), i retireve the workitems belonging to a logged on user to my application(MYUSER) using a filter.
Now i want to start the workitem assigned to the MYUSER, is the only way to do this is to login to the service with MYUSER and do a workitem.start() or can i set the user dynamically.
Note that i am using JAVA API, is there any other approach to do the same?
here is the exception i am getting
RC : 119
Origin : FmcWorkItem.java:1097
MessageText: FMC00119E Not authorized _________________ Srisudhir Tadepalli |
|
Back to top |
|
 |
elvis_gn |
Posted: Thu Aug 18, 2005 1:33 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi tsrisudh,
Its been a while since i've worked on this, but i think you can set the user dynamically by first finding out the owner (using .owner api) and then logging in as the same.
Why are u logging in and starting the workitem one by one...U can use an automatic start from the properties ?? Maybe ur requirement is so....just a suggestion.
Ur not authorized exception is becoz the user who is trying to start the workitem is not authorized guess u would have figured that one out. |
|
Back to top |
|
 |
jmac |
Posted: Thu Aug 18, 2005 5:34 am Post subject: Re: workitem start user authorization |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
tsrisudh wrote: |
Note that i am using JAVA API, is there any other approach to do the same? |
use wi.transfer(userid) to transfer the workitem to the user who you wish to run the workitem.
Why are you not logging in as that user in the first place? _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
tsrisudh |
Posted: Fri Aug 19, 2005 5:38 am Post subject: |
|
|
 Centurion
Joined: 11 Aug 2005 Posts: 113
|
The users logon to the application but the password is not available to the application to be used to logon to WF, that is the reason i am trying to somehow start the workflow in this users context, is there any approach? _________________ Srisudhir Tadepalli |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Aug 22, 2005 3:58 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
I think jmac gave you the approach in transferring the workitems to the user.
Is the admin user not able to start the workitems ??? |
|
Back to top |
|
 |
supreeth |
Posted: Tue Aug 23, 2005 4:30 am Post subject: |
|
|
 Voyager
Joined: 17 May 2005 Posts: 90 Location: London
|
Hi tsrisudh,
Quote: |
The users logon to the application but the password is not available to the application to be used to logon to WF |
you can use the authentication exit at the server end and use a variant of the logon API (logon3 or logon4) instead of using logon or logon2 API.
The authentication exit would be invoked when the application is using the above APIs i mentioned and the authentication exit can be coded to map the user name onto a common user (the user MYUSER or somebody). This common user should be a valid MQWF user. This is coz the ADMIN server just checks for the availablity of the user in the WF database and allows the user to pass thro without asking for password.
read thro the Programming guide (Chapter 7) to know how to go about writing an authentication exit and how to invoke the same.
Thanks and Regards,
Supreeth |
|
Back to top |
|
 |
tsrisudh |
Posted: Tue Aug 23, 2005 4:47 am Post subject: |
|
|
 Centurion
Joined: 11 Aug 2005 Posts: 113
|
Thanks Supreeth,
Will go thru chapter 7 and try implementing _________________ Srisudhir Tadepalli |
|
Back to top |
|
 |
|