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 » Input Container array element

Post new topic  Reply to topic
 Input Container array element « View previous topic :: View next topic » 
Author Message
RJoubert
PostPosted: Tue Aug 24, 2004 7:41 am    Post subject: Input Container array element Reply with quote

Apprentice

Joined: 30 May 2002
Posts: 43
Location: Buffalo, NY

I'm in the process of writing a Java app that needs to access the input container of a work item. The data container includes several array elements. Thru the Java API, how can I access these array elements and put them into an array of Strings?

There is no WORKITEM.GETARRAY("elementName").

Thanks,
Rich
Back to top
View user's profile Send private message
Ratan
PostPosted: Tue Aug 24, 2004 7:56 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

Container.getString2(qualifiedName, index)
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
amittalekar
PostPosted: Tue Aug 24, 2004 7:58 am    Post subject: Reply with quote

Disciple

Joined: 03 Apr 2002
Posts: 166
Location: VA, USA

There is no direct method to get array. You know array size as that is what u define in buildtime. Consider u have array name "TEST1" of size 20. Data Structure "TEST1" has 2 strings elements define namely "TEST2" and "TEST3".


U can use something like this.

You can retrieve ReadOnlyCOntainer from workItem.

for (int x = 0; x < 19; x++ ) {
try{
roc.getString("TEST1["+x+"].TEST2");
}catch(){}
}
Back to top
View user's profile Send private message Yahoo 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 » Input Container array element
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.