Posted: Sun Jun 26, 2016 1:14 pm Post subject: Publish message on multiple topic strings
Newbie
Joined: 24 Feb 2016 Posts: 4
Hi,
I've a scenario where I would receive message using MQ Input node and based on the value of source system present in the message, I need to form topic string and publish the message. This is how my flow looks like:
MQInput -> Compute -> Publication
And I populate the value of Topic using:
SET OutputRoot.Properties.Topic = 'TopicName/' || sourceName ;
This works fine in case message contains one source system.
However there is possibility that message contain multiple source system. How do I publish message on multiple topic string using this flow (something like this)
SET OutputRoot.Properties.Topic = 'Topic/' || sourceName1 ;
SET OutputRoot.Properties.Topic = 'Topic/' || sourceName2 ;
Add a propagate statement inside a loop that iterates as many times as the number of sources. Set appropriate value for OutputRoot.Properties.Topic for each iteration. Make sure to change the return value of Main function to false;
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