CST-12865 Automatic inbound patterns don’t send an LDN if an item filter is not selected

This commit is contained in:
frabacche
2024-01-10 10:54:52 +01:00
parent 9c83afe740
commit 9567ff9811

View File

@@ -102,7 +102,7 @@ public class LDNMessageConsumer implements Consumer {
List<NotifyServiceInboundPattern> inboundPatterns = inboundPatternService.findAutomaticPatterns(context); List<NotifyServiceInboundPattern> inboundPatterns = inboundPatternService.findAutomaticPatterns(context);
for (NotifyServiceInboundPattern inboundPattern : inboundPatterns) { for (NotifyServiceInboundPattern inboundPattern : inboundPatterns) {
if (inboundPattern.getConstraint() == null || if (StringUtils.isEmpty(inboundPattern.getConstraint()) ||
evaluateFilter(context, item, inboundPattern.getConstraint())) { evaluateFilter(context, item, inboundPattern.getConstraint())) {
createLDNMessage(context, item, inboundPattern.getNotifyService(), inboundPattern.getPattern()); createLDNMessage(context, item, inboundPattern.getNotifyService(), inboundPattern.getPattern());
} }