Hi,
I tried doing this but message is directly going to transformer even though expression is returning false by default! Where am I going wrong?!
Code:
outgoingEventFilter(com.event.filter.OutgoingEventFilter)
recipient (
'channel':'outChannel',
'selector-expression':"@outgoingEventFilter.accept(payload)"
)
class OutgoingEventFilter implements MessageSelector{
@Override
public boolean accept(Message<Object> message) {
return false
}
public boolean accept(String payload){
return false
}
}
Even if I give direct FALSE, message is going to outChannel?!
Code:
def doWithSpring = {
integration{
'recipient-list-router'(id:'listenerRouter','input-channel':'inChannel')
{
recipient('selector-expression':"false",'channel':'outChannel')
}
}
}