|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Cancel/Transfer items |
« View previous topic :: View next topic » |
Author |
Message
|
sam999 |
Posted: Mon Sep 26, 2005 2:28 am Post subject: Cancel/Transfer items |
|
|
Apprentice
Joined: 12 Jul 2005 Posts: 34
|
We have the scenario whereby users will retrieve workitems from virtual user lists. They can then either check back in the item or decide to cancel. Currently, when they check back in the item it remains on their worklists but I would like this item to go back onto the virtual users list. Do we have to do a transfer back to the virtual user when the user cancels or is there another way around this?
As always, replies and opinions greatly appreciated :-) |
|
Back to top |
|
 |
JKehoe |
Posted: Mon Sep 26, 2005 4:46 am Post subject: |
|
|
Novice
Joined: 10 Aug 2005 Posts: 20
|
I have coded a complete Group Worklist strategy, and I can tell you from experience, the deeper in it that you get, the more custom code you'll find yourself writing.
Yes, you're going to have to transfer the item back to the virtual user manually (aren't you manually transferring the item FROM the VU to the logged in user when they select it, anyway?)
The best way to handle this is probably by overriding the cancelWorkItemResponse from the JSPViewer class (I assume you are extending this somewhere). Within this method, get the WorkItem from the RequestContext and transfer it back to the VU.
Hope this helps,
josh |
|
Back to top |
|
 |
jmac |
Posted: Mon Sep 26, 2005 5:43 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
JKehoe wrote: |
The best way to handle this is probably by overriding the cancelWorkItemResponse from the JSPViewer class (I assume you are extending this somewhere). Within this method, get the WorkItem from the RequestContext and transfer it back to the VU.
|
The problem with overriding cancelWorkItemResponse is that it will then have this "transfer to virtual user" behavior whenever a user cancels. You will need to be sure you understand exactly the behavior that is needed by all your various usrers or you will end up continually adding additional functions. I would probably go with separate custom commands to handle the return to virtual user, and if necessary a cancel checkout and return to virtual user. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|