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 » [SOLVED]workflow API - Container problem

Post new topic  Reply to topic
 [SOLVED]workflow API - Container problem « View previous topic :: View next topic » 
Author Message
scar
PostPosted: Tue Oct 26, 2004 10:30 am    Post subject: [SOLVED]workflow API - Container problem Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

I am using workflow API to get the value of a container member.
the problem is it may or may not be set.

i am using the following code.

ReadOnlyContainer inctnr = wkItem[j].inContainer();
if(inctnr.isEmpty())
{
System.out.println("Input container is not initilized");
}
else
{
System.out.println("Input container is not empty");
String peTID = inctnr.getString("ProcessSheet.AMESupervisorID").trim();
}
this is the error i got.
FMC00112E Container member not found


is ther any way i can check if the container element is set before trying to get it.
Back to top
View user's profile Send private message
jmac
PostPosted: Tue Oct 26, 2004 10:53 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

No, you have to get the container memeber and deal with the Memeber Not Set error.

The error you mention in your post means that the container item you have specified is not in the container. Most likely a spelling error
_________________
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
scar
PostPosted: Tue Oct 26, 2004 11:03 am    Post subject: Solved Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

Thanks
Back to top
View user's profile Send private message
CHF
PostPosted: Tue Nov 16, 2004 5:20 am    Post subject: Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

jmac wrote:
you have to get the container memeber and deal with the Memeber Not Set error.

John:

What I am understanding from the above is that there is no way we can check whether a particular container member is set or NOT set before we get that value [ContainerElement.getString()]. Is there any way around solutions for this?

Thanks
_________________
CHF
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
scar
PostPosted: Tue Nov 16, 2004 7:48 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

I tried every thing
but i guess NO.
Back to top
View user's profile Send private message
jmac
PostPosted: Tue Nov 16, 2004 9:51 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

CHF:

That is correct.... the only way you know is when you get the error upon attempted retrieval of the member.
_________________
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
CHF
PostPosted: Wed Nov 17, 2004 4:46 am    Post subject: Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

Thanks all.
_________________
CHF
Back to top
View user's profile Send private message Send e-mail 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 » [SOLVED]workflow API - Container problem
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.