Sidebar
0 votes
321 views
by shawn-s-8193 (150 points)
Good Afternoon,

I'm working on a proof of concept and was wondering if it is possible to route messages dynamically.  I basically check an MSH value to determine which destination receives the message.  The only way I could determine to do this, was to send the message to every destination with a Mapper node in between that basically checks to confirm if the value 'does not equal' something then discard it.  Is there a better way to do this?

i.e.  if MSH-4 = "eCW" send to eCW destination, if MSH-4 = "athena" send to athena destination, if MSH-4 = "Centricity" send to centricity, etc...

Thanks.

1 Answer

+1 vote
 
Best answer

I would use a condition node.

Here is a a basic layout in the visual channel editor:

Note: on the Yellow Condition Node the checkbox is the path it will follow if the condition is true. The X is what it will follow if the condition is false.

by brandon-w-8204 (34.1k points)
selected by shawn-s-8193
...