Posted: Thu Dec 01, 2005 5:25 am Post subject: MRM Validation Question
Centurion
Joined: 24 Jun 2005 Posts: 116
One of my requirements is to validate an incoming message against the dtd. I created a .xsd and imported that into my toolkit in order to validate the incoming message in the MRM domain.
However I am supposed to validate this message raise an exception but continue processing the message? Is it possible to validate a message against the message set but still allow the message flow to continue?
If I set my MQInput Node properties to Validate Content and Value and validate the incoming message if it fails validation how do I continue with the remainder of my message flow? It seems like it just fails with a parsing error.
You can control what action results from a validation failure by use of the "failureAction" property on your input node.
in v5 alternatives to "Exception" are "Local Error Log" and "User Trace" which I think are self explanitory.
in v6 you also have "Exception List" which allows you to catch all validation failures in a message before throwing any exceptions.
Now if you want to throw an exception then you can't continue with the normal processing of your flow. That's having your cake and eating it.
So you can either not throw an exception on valdiation failure (ie "Local Error Log" or "User Trace")
Or you can throw an exception and handle your invalid message via the catch terminal in an alternative set of flow nodes. This is what you would typically do if you wished to take any action in your flow for invalid messages.
[quote="wooda"]You can control what action results from a validation failure by use of the "failureAction" property on your input node.
in v5 alternatives to "Exception" are "Local Error Log" and "User Trace" which I think are self explanitory.
in v6 you also have "Exception List" which allows you to catch all validation failures in a message before throwing any exceptions.
Now if you want to throw an exception then you can't continue with the normal processing of your flow. That's having your cake and eating it.
So you can either not throw an exception on valdiation failure (ie "Local Error Log" or "User Trace")
Or you can throw an exception and handle your invalid message via the catch terminal in an alternative set of flow nodes. This is what you would typically do if you wished to take any action in your flow for invalid messages.[/quote]
Thanks so much for your response -
I am still using v5. I just get conceptualize how to do this but I will give it a try.
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