What does msg mean in Mirth?

☆樱花仙子☆ 提交于 2019-12-22 04:08:20

问题


I'm trying to learn my way around some Mirth code. I keep seeing things like this in the transformer for different channels:

msg['PRB']['PRB.4']['PRB.4.2'].toString()

I understand that this is parsing a HL7 message and I understand that msg probably means message. But is MSG a system-wide variable? Does every channel have a msg variable? What is the scope of msg? I also keep seeing things like ${message.encodedData} in the Templates. Do certain connector types automatically send the contents of msg?


回答1:


The msg variable is the current instance of the inbound message that you will use for routing or mapping. It only exists in the context of the mapping/transformation that you are applying and is not system-wide. The message that will be transmitted is referred to as tmp. So, when you are mapping, you will be going from msg -> tmp.



来源:https://stackoverflow.com/questions/6601712/what-does-msg-mean-in-mirth

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!