Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap MessageGroupProcessor result a collection of payloads into a message in the AbstractCorrelatingMessageHandler #9706

Open
artembilan opened this issue Dec 9, 2024 · 0 comments

Comments

@artembilan
Copy link
Member

Right now, the AbstractCorrelatingMessageHandler fails like:

		Assert.isAssignable(Message.class, commonElementType, () ->
				"The expected collection of Messages contains non-Message element: " + commonElementType);

if custom MessageGroupProcessor (which simply can be lambda) returns just a collection of payloads, but not messages.

The DefaultAggregateHeadersFunction can be used in this case to wrap that collection into a single message with grouped headers.
Similar to what happens in the AbstractAggregatingMessageGroupProcessor.

More info in: https://stackoverflow.com/questions/79253871/stop-execution-splitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant