Neuron ESB User Network

The Service Bus for the Connected Business

New to Neuron ESB, so forgive me if this is easy.

I have been going through tutorials, and experimenting with conditional routing.  I have figured out how to set up subscriptions with routing for one of the various message header properties that are in the dropdown (Action, Body, Schema, etc).  

I was trying to figure out if it is possible to do this same kind of conditional routing based off of a custom property in the message?

For example, the following code would generate a message for the Contacts.New Topic.  

ESBMessage msg = new ESBMessage ("Contacts.New",customer);

msg.SetProperty("MT", "MessageType", "AutomatedCustomer");

publisher.SendMessage(msg);

I want my Subscriber setup to receive for this topic where CustomProperty("MessageType") == "AutomatedCustomer"

or something like that...

Views: 219

Reply to This

Replies to This Discussion

David,

You can do this.  When you configure the subscriptions for the subscriber, click on the topic that you want to add the condition to and click the button next to the Create a Condition text box:

On the Edit Conditions dialog, just enter the name of the custom property you want to route on:

Click OK and this subscriber will only receive messages on the Topic1 topic that have the customer property MT.MessageType = AutomatedCustomer.

Thanks Joe,

I had tried this, but evidently I had something else misconfigured when I did so...thereby making it appear to not work.  It works perfectly though.

David

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service