I have below scenario using pollEnrich and Aggregator.
private static final String SOURCE_FILE_COMPONENT = "file:%s?fileName=$simple{exchangeProperty.fileName}.%s";
from("direct:signatureVerificationRoute")
.pollEnrich(String.format(SOURCE_FILE_COMPONENT, sourceLocation,signatureAlgorithm), new Aggregator())
.to("direct:test");
Where in above code, i have framed dynamic uri for pollEnrich which is not working.