Author |
Message
|
skn |
Posted: Thu Nov 20, 2003 7:42 am Post subject: transform node problem |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
hi,
I have a message flow thats converts TDS to generic XML.When I deliberately misspell the reference to a element in the message set in my transform node,the node does not throw an exception.It just doesnt assign a value to that perticular XML element.Am i missing something here.Is it not supposed to throw an exception when it sees a incorrect reference(by the way I do have a try catch node before the transform). |
|
Back to top |
|
 |
EddieA |
Posted: Thu Nov 20, 2003 10:38 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Working as designed.
You 'may' be able to get an error thrown by using some of the validation options.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Missam |
Posted: Thu Nov 20, 2003 11:47 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Hi
If you misspell in your reference broker looks for the misspelled element and doesn't find any.it continues processing with out throwing an exception.you can see this by debugging the flow.If you are referencing element which doesn't exist,it simply says Failed to navigate to path element becaue it doesn't exist and continues with the next line of your code.If you assign this to your XML element.You won't find this XML element in you output,becaue it is assigend to the element which doesn't exist means NULL.
Thanx
Sam |
|
Back to top |
|
 |
skn |
Posted: Fri Nov 21, 2003 9:19 am Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
Okay.Are there any conditions in which the transform node throws the message back to the trycatch node like what if I populate the environment exception list. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Nov 21, 2003 9:36 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
purplemania wrote: |
Okay.Are there any conditions in which the transform node throws the message back to the trycatch node like what if I populate the environment exception list. |
There is a 'throw' ESQL statement that will cause the node to exit out of the 'failure' terminal - which if not connected will propogate back to the try/catch node.
You can also get exceptions thrown automatically when your code encounters runtime errors - like going past the bounds of an array, or assigning to a NULL reference, or assigning a string to an integer (or other such conversion failures).
But merely putting stuff into the ExceptionList tree will not cause the node to propogate out to the 'failure' terminal. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|