|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
trouble with null value move |
« View previous topic :: View next topic » |
Author |
Message
|
sdng |
Posted: Mon Feb 06, 2006 8:29 am Post subject: trouble with null value move |
|
|
Acolyte
Joined: 23 Nov 2005 Posts: 53
|
in some bo i have some attribute that can be null
at first it has real value (test for example)
than i change it to null, null did not move to result system
can ICS move null values? _________________ Are you gangsters? No, we are Russians! |
|
Back to top |
|
 |
sdng |
Posted: Mon Feb 06, 2006 8:30 am Post subject: |
|
|
Acolyte
Joined: 23 Nov 2005 Posts: 53
|
for map I use standart operation 'Move' _________________ Are you gangsters? No, we are Russians! |
|
Back to top |
|
 |
Ratan |
Posted: Mon Feb 06, 2006 10:49 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
What do you mean by <null> did not move? do you see any other value instead of null? _________________ -Ratan |
|
Back to top |
|
 |
sdng |
Posted: Tue Feb 07, 2006 3:41 am Post subject: |
|
|
Acolyte
Joined: 23 Nov 2005 Posts: 53
|
Hi,
I mean than <null> attribute value dont move from source system to destination. other values do it. attribute is simple (char type). for transfet use Foundation collaboration and 'Move' operation at map.
according to source of 'Move' opetation that is
Object srcValue = null;
srcValue = ObjPED_PERS_FT.get("SrcAttrName");
{
BusObj destBusObj = ObjGBO_PERSON;
String destAttr = "DestAttrName";
if ((srcValue != null) && (destBusObj != null)) {
if (dataValidationLevel >= 1) {
if (!ObjGBO_PERSON.validData("PASSPORT", srcValue)) {
String warningMessage =
"Invalid data encountered when attempting to set the value of the \"PASSPORT\" attribute of BusObj \'ObjGBO_PERSON\' while running map \'"
+ getName()
+ "\'. The invalid value was \'"
+ srcValue
+ "\'.";
logWarning(warningMessage);
if (failOnInvalidData) {
throw new MapFailureException(warningMessage);
}
}
}
destBusObj.setWithCreate(destAttr, srcValue);
}
}
(It is standart code for 'Move' operation that i get from source command from map designer)
at this code source attribute compare with <null> and put into destination attribute only if it is not null
am i right that ICS dont tell the difference between null and ignore values? _________________ Are you gangsters? No, we are Russians! |
|
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
|
|
|
|