Republish Action

    Note that the message republish action does not terminate the delivery of the original messages. For example, if a message “t/1” is received by the republish action and then a new “t/2” message is published per this rule, the delivery of the “t/1” message is not terminated, and clients subscribed to the “t/1” topic can still receive the original message.

    Click on Rules Engine - Rules - Create, and enter SQL.

    Note that when the QoS and Retain use placeholder variables and the parameters obtained from the message information are not legal (i.e. QoS is not 0, 1 or 2, Retain is not true or false), the message is discarded and the action is marked as failed.

    image

    Post a message and you can see that client received a message with topic repub/to/123456.