Event.routeTo()

Signature

SimpleEvent routeTo(SimpleEvent event, String destinationPath, String properties) {

Domain

action

Description

Sends a SimpleEvent to a Destination with custom destination properties. The Destination in turn specifies the Channel where the Event will be sent.

Parameters

NameTypeDescription
eventSimpleEventThe simpleEvent to be sent.
destinationPathStringThe path to the Destination that will be used to send the Event. e.g. "/MyChannel/MyDestination" where MyChannel is the Channel in the model and MyDestination is destination in it.
propertiesStringA list of property name-value pairs in the format [name1=value1;name2=value2;...;] when present in the name or value each character [ =, ; or \\ ] should be escaped with two antislash [ \\ ] characters for e.g. 2=1+1 should be written as 2\\\\=1+1 (proper string value being 2\\=1+1)and 2\\3\\4 should be written as 2\\\\\\\\3\\\\\\\\4 (proper string value being 2\\\\3\\\\4).

Returns

TypeDescription
SimpleEventThe same event. Null if there is an error, of the argument was null.

Cautions

Custom channels may not support overriding of destination properties.