Skip to content

Payload Enricher with request-payload-expression="payload.username" #346

Open
@roro0290

Description

@roro0290

While trying out the enricher example by using Java DSL, I am unable to replace the payload that contains User object with only username field using the method:
.enrich(p -> p.requestPayloadExpression("payload.username"))
--> https://docs.spring.io/spring-integration/reference/html/content-enrichment.html#payload-enricher

However, the payload functionality works when I use the transform method that takes in an expression parameter
.transform("payload.username")

Is the transform method the only way to update the payload?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions