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 » workitem start user authorization

Post new topic  Reply to topic
 workitem start user authorization « View previous topic :: View next topic » 
Author Message
tsrisudh
PostPosted: Thu Aug 18, 2005 12:40 am    Post subject: workitem start user authorization Reply with quote

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
View user's profile Send private message Yahoo Messenger
elvis_gn
PostPosted: Thu Aug 18, 2005 1:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jmac
PostPosted: Thu Aug 18, 2005 5:34 am    Post subject: Re: workitem start user authorization Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
tsrisudh
PostPosted: Fri Aug 19, 2005 5:38 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
elvis_gn
PostPosted: Mon Aug 22, 2005 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
supreeth
PostPosted: Tue Aug 23, 2005 4:30 am    Post subject: Reply with quote

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
View user's profile Send private message
tsrisudh
PostPosted: Tue Aug 23, 2005 4:47 am    Post subject: Reply with quote

Centurion

Joined: 11 Aug 2005
Posts: 113

Thanks Supreeth,

Will go thru chapter 7 and try implementing
_________________
Srisudhir Tadepalli
Back to top
View user's profile Send private message Yahoo 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 » workitem start user authorization
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.