Author |
Message
|
satyasheel15 |
Posted: Tue Jul 01, 2003 7:30 am Post subject: Information Wanted Regarding Mandatory Tag in Message Set |
|
|
Voyager
Joined: 04 Mar 2003 Posts: 86
|
Hi
Question:
I have set the properties of the element in the message set to MANDATORY. But when I am putting the input message without the tag which has been made MANDATORY in the message set, the input message is parsing without any error.
Please guide. |
|
Back to top |
|
 |
Craig B |
Posted: Tue Jul 01, 2003 8:23 am Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
Have you switched on message validation to which will check your minOccurs and maxOccurs constraints. If you are not using validation then the TDS parser will omit elements that are not present regardless of what minOccrs and maxOccurs are set to. _________________ Regards
Craig |
|
Back to top |
|
 |
satyasheel15 |
Posted: Tue Jul 01, 2003 9:01 pm Post subject: Information Wanted Regarding Mandatory Tag in Message Set |
|
|
Voyager
Joined: 04 Mar 2003 Posts: 86
|
Hi Craig,
To make the tag mandatory, I have made the properties of the tag 20 : SW20 as:-
Repeat - 1
Min Occurs - 1
Max Occurs - 1
Suspended from Use - No
Element - SW20
But please tell me what do you mean be " Have you switched on message validation to which will check your minOccurs and maxOccurs constraints. "
Please tell me how to do this.
Regards Always
Satyasheel |
|
Back to top |
|
 |
Craig B |
Posted: Tue Jul 01, 2003 11:25 pm Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
In WMQI V2.1 CSD03 MRM message validation was introduced. Information regarding this functionality can be found in the latest Working With Messages book.
In summary, on the MQInput node and Compute nodes there is now a Validation tab from which you can set your message validation options. The MQInput node options will set the options for the message read in from the input queue, and the Compute node options will be used on newly created OutputRoot message trees.
For example if you wanted to validate your input message as soon as it is read in, then you would set you MQInput message validation options to "Content and Value" and the Timing to be "Immediate".
This validation should check elements against the minOccurs and maxOccurs constraints. _________________ Regards
Craig |
|
Back to top |
|
 |
satyasheel15 |
Posted: Tue Jul 01, 2003 11:59 pm Post subject: Information Wanted Regarding Mandatory |
|
|
Voyager
Joined: 04 Mar 2003 Posts: 86
|
Hi Craig B,
Your suggestion works. Thanks for that.
But when I set the Validation properties of the Input and Comptue Node to
Validate: ContenAndValue
Failure Action: Exception
Timing: Immediate
and in the Trace Node I have set the properties to File Trace and written the code : ${ExceptionList} to capture which Mandatory tag has failed. But no ExceptionList is generated in the trace node. Please advise why.
Regards Always
Satyasheel |
|
Back to top |
|
 |
Craig B |
Posted: Wed Jul 02, 2003 1:34 am Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
From which failure terminal is your trace node wired?? If you have wired the MQInput node failure terminal then this will not contain your exception. If this what you have wired then this is what would have happened :
1) your error would have occured in your flow,
2) the processing would have returned to the MQInput node
3) Catch terminal not wired, so message rolled back, flow ends, and exception list lost.
4) Message picked up again.
5) BackoutCount exceeds threshold, message sent to failure path.
_________________ Regards
Craig |
|
Back to top |
|
 |
satyasheel15 |
Posted: Wed Jul 02, 2003 2:31 am Post subject: Information wanted regarding the Trace Node |
|
|
Voyager
Joined: 04 Mar 2003 Posts: 86
|
Hi Craig,
I have wired the Fail node and trace node to the MQInput Node. There is not try catch node. I want to capture the error using the trace node [ ${ExceptionList} ]. So please let me know how to do that.
Regards Always
Satyasheel |
|
Back to top |
|
 |
|