NextGen Knowledge Center

Use the "Destination Set Filter" feature in your source transformer when you need to route messages to only one (or a subset) of destinations in your channel.

This feature has been available in the JavaScript user API since version 3.1.0:

if (sourceMap.get("contextPath") == "/path1") {
    destinationSet.removeAllExcept([1]);
}

A less efficient pattern used prior to version 3.1.0 was to filter the message on all destinations except the desired destination. This approach consumes more disk space as the message is copied to each destination before the filtering takes place. The Destination Set Filter will ensure that the message is only processed and stored by the desired destination.

Since version 3.5.0, it can also be leveraged without writing any code: