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 » Custom Command for multiple check out...

Post new topic  Reply to topic
 Custom Command for multiple check out... « View previous topic :: View next topic » 
Author Message
cisiva81
PostPosted: Sun Aug 08, 2004 9:41 pm    Post subject: Custom Command for multiple check out... Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Mon Aug 09, 2004 4:57 am    Post subject: Reply with quote

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
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 » Custom Command for multiple check out...
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.