MessageProxy
The MessageProxy
is a block used to forward received messages to multiple targets using added MessageArgument
inputs and outputs.
Note: The MessageProxy is typically not needed when sending messages with MessageArgument in system configuration, as MessageArgument already supports multiple targets.
Usage
MessageProxy
is a useful helper block to implement Redundancy solutions where there are requirements to send the same message from UI or control application to multiple parallel targets. What messages the MessageProxy
receives and forwards depends on the configuration of added MessageArgument inputs and outputs.
- It is possible to convert incoming non CM_TEXTCOMMAND messages (custom binary commands) to other custom binary commands by setting the received and sent Command properties on the input and output
MessageArgument
. - It is possible to convert incoming CM_TEXTCOMMAND messages to other CM_TEXTCOMMAND commands by setting the received and sent TextCommand property on the (input and/or) output
MessageArgument
. - It is not possible to convert non CM_TEXTCOMMAND binary command to CM_TEXTCOMMAND message or the other way around. Also when converting between different commands the user is responsible for message data partition compatibility at the endpoints.
Note: It is important to keep in mind that MessageProxy will replace the Origin of the message and for that reason is not suitable for forwarding messages that require ACK handling or response
See also MessageArgument, ReceiveMessage, SendMessage, and MessageRegexProxy.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.