Filtering messages

lundi 6 octobre 2014

Hey guys!

I am trying to use a single channel to receive both ORM and ADT message types from a system. the message is received as XML at the source, and goes to the destinations as XML. The destinations have transformers that generate the HL7 messages. The problem I am having is with filtering. I would assume that since the destination is receiving the data in XML format, the filter will be looking at XML data. the following is the filter for my A08 messages (for which there is a value sent from the system:



var msgType = msg['Parameters']['msg_type'].toString();

if(msgType == "A08"){

return true;

}else{

return false;

}



For some reason this is not getting passed the filter. Any thoughts?





Filtering messages

0 commentaires:

Enregistrer un commentaire