Posted: Thu Jan 31, 2008 6:06 am Post subject: Question about validation node and CWF messages
Voyager
Joined: 27 Jul 2004 Posts: 93
I have a situation in which I get 2 different formats of CWF messages on the same queue. Each one is processed differently in the flow. I have each one defined differently in my messageset, and what I thought I could do is use the validate node to figure out which one it is.
So on my Input node I specified the Message Domain and Message Set but not the message type or message format. On a breakpoint between the input node and the validate node it shows "RM Worker Not Found."
Is this a good approach? How can I tell it not to worry about the type and format on the input node then check it on the validate node?
Well I don't think that will work. I don't think I can use the validate node to check the message format without loading it into that message format first.
Yes, the Validation node does a full parse of the message data.
You would have some difficulty telling the difference between a message that failed to validate because it was in the wrong format, and a message that failed to validate because it was in the right format but had bad data.
Ideally, there's something you can use to tell the difference between the two formats. Then you can code logic to check that specifically, or change your models so that the model can use that difference to decide the format for you. _________________ I am *not* the model of the modern major general.
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