|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Custom Command for multiple check out... |
« View previous topic :: View next topic » |
Author |
Message
|
cisiva81 |
Posted: Sun Aug 08, 2004 9:41 pm Post subject: Custom Command for multiple check out... |
|
|
Newbie
Joined: 28 Jul 2004 Posts: 2
|
Hi,
I am trying to write a custom command to check out all the items in the inbox with the click of one button. I managed to write my own command and invoke it. The problem is that there are 2 method in command handler for checking out work items. Both methods seem to need an "id" field in the request parameter list. Since i want a multiple check out I dont have the id parameter. How do i work around this. My code looks something like this....
ArrayList oidList = (ArrayList) session.getAttribute("oidList");
RequestContext rc = (RequestContext) session.getAttribute("rc");
for( int i = 0;i {
String oid = (String) oidList.get(i);
Item wi = sc.getWorkItem (sc.getWorkListOid(), oid);
String oo = wi.owner();
request.setAttribute("id",oid);
bh.checkOutWorkItem(rc,oid,oo,false);
} |
|
Back to top |
|
 |
jmac |
Posted: Mon Aug 09, 2004 4:57 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
This seems like it should work to me, you just should use the WI::checkout() api, not the thin client checkout you are using _________________ 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
|
|
|
|