Author |
Message
|
bduncan |
Posted: Tue Oct 02, 2001 9:06 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Wed Oct 03, 2001 5:50 am Post subject: |
|
|
 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 |
|
 |
venkat |
Posted: Wed Oct 03, 2001 7:41 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Wed Oct 03, 2001 9:32 am Post subject: |
|
|
 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 |
|
 |
jmac |
Posted: Wed Oct 03, 2001 3:13 pm Post subject: |
|
|
 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 |
|
 |
venkat |
Posted: Fri Oct 05, 2001 8:25 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Fri Oct 05, 2001 4:13 pm Post subject: |
|
|
 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 |
|
 |
|