Author |
Message
|
scar |
Posted: Tue Oct 26, 2004 10:30 am Post subject: [SOLVED]workflow API - Container problem |
|
|
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 |
|
 |
jmac |
Posted: Tue Oct 26, 2004 10:53 am Post subject: |
|
|
 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 |
|
 |
scar |
Posted: Tue Oct 26, 2004 11:03 am Post subject: Solved |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
|
Back to top |
|
 |
CHF |
Posted: Tue Nov 16, 2004 5:20 am Post subject: |
|
|
 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 |
|
 |
scar |
Posted: Tue Nov 16, 2004 7:48 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
I tried every thing
but i guess NO. |
|
Back to top |
|
 |
jmac |
Posted: Tue Nov 16, 2004 9:51 am Post subject: |
|
|
 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 |
|
 |
CHF |
Posted: Wed Nov 17, 2004 4:46 am Post subject: |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
Thanks all. _________________ CHF  |
|
Back to top |
|
 |
|