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 » posted for Venkat - Java API question

Post new topic  Reply to topic
 posted for Venkat - Java API question « View previous topic :: View next topic » 
Author Message
bduncan
PostPosted: Tue Oct 02, 2001 9:06 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Hi,
Would like to know, if there is a java
api for the following

1). Using the java api, can i find out
which user in a particular role has
checked out the workitem,
considering that workitem has
been assigned to all users in the
role.
2). Using the java api, can a
administrator break the lock of
other users?

Back to top
View user's profile Send private message Visit poster's website AIM Address
jmac
PostPosted: Wed Oct 03, 2001 5:50 am    Post subject: Reply with quote

Jedi Knight

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

1) One way to do this would be to access the activity instance. This will tell you the state (Checked Out in your case) and the User(s). For a Ready Item it would be all users for a Checked out item it should be the user that has the item checked out.

2) I am not certain what you mean... But I think the answer is NO (I am assuming Runtime here). In runtime you would need to break the session, and unless the admin has the users password and could logon as that user, I see no way this can be done. For Buildtime the system admin can relase the locks held by any user.


_________________
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
venkat
PostPosted: Wed Oct 03, 2001 7:41 am    Post subject: Reply with quote

Newbie

Joined: 01 Oct 2001
Posts: 2


Hi John,
Thanks for your response, I did a
quick test on your suggestion on 1st question in runtime.
I setup a role with two users, I created
a process instance which generated work item
for both users (same process instance).
I checked out the workitem from the
first user, Using Runtime i checked the
second user's worklist, the work item was
disabled, But when i look at the activity
instance (using process instance monitor)
staff list, It lists both the users.
Is this what you meant in your reply?
I am using MQWF 3.2.2 on NT 3.51

Thanks,
-Venkat.

Back to top
View user's profile Send private message Send e-mail Visit poster's website
jmac
PostPosted: Wed Oct 03, 2001 9:32 am    Post subject: Reply with quote

Jedi Knight

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

This is not what I had anticipated the output would be. It seems that the activity instance is showing the item that is in the disabled state.

Let me think about this for awhile and I will see if I can come up with another way you can get what you are looking for. In the meantime, if you can give me some more information on what you are trying to do that would be helpful

_________________
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
jmac
PostPosted: Wed Oct 03, 2001 3:13 pm    Post subject: Reply with quote

Jedi Knight

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

I wish I knew why you wanted to know which user had the item checked out. There may be another way to do this, but I am certain that this will work .
Given:
ActivityName
ProcessInstanceName
A user with access to all workitems

You can do a QueryWorkitems against the execution server from a user with access to all workitems. Set the filter to use the ActivityName, ProcessInstanceName, and the CHECKED OUT state. This should give you exactly 1 item in the vector returned and this would be the item you are looking for.

GOOD LUCK


_________________
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
venkat
PostPosted: Fri Oct 05, 2001 8:25 am    Post subject: Reply with quote

Newbie

Joined: 01 Oct 2001
Posts: 2

Hi John,
Thanks for your reply.
This is the user requirement. Let us say
there are 5 users in a role. If a work item
is assigned to the role, ALL users will
get the workitem.
Where user1 checkouts the workitem, all the
other user's workitem will be changed to
disabled(checkedout) state. Our Requirement
is the other users need to know which particular user has checked out this item,
so that they can contact them if required
and ask them to release the lock.

Any thoughts would be appreciated

-Venkat.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jmac
PostPosted: Fri Oct 05, 2001 4:13 pm    Post subject: Reply with quote

Jedi Knight

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

OK... so the method I gave you will work in that case... But it would be best if all the users in this role were authorized to each other... In that way they would be able to see a woorklist that shows all the items they have access to, and in the case where one of the other users has the item checked out, they would see it in that state for the owner of the item (ie the user with the item checked out). The downside to this is that the user will see work which they do not own, but it sounds to me that for some reason this is a requirement of your workflow.

GOOD LUCK


_________________
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 » posted for Venkat - Java API question
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.