Reputation: 3
I am using MULE and 3 transformers, 2 that that require information from an HTTP response + a POJO. Transformer 2 and 3 only get the HTTP POST repsonse now and not the POJO.
Transformer1 gets a POJO and transforms it , sends it to a HTTP endpoint, it uses a Post request.
The response of the POST is used in transformer 2 and 3, however they also need the POJO that to do their transformation !
How can I use the pojo that was used in Transformer 1 + the http response in transformer 2 and 3? I want a message to enter the ALL control flow with the payload = http response + the POJO.
Is it possible to add the two in a message e.g 2 payloads in 1 message ? How can I solve this issue?
Thanks in advance.
Mule Flow:
Upvotes: 0
Views: 487
Reputation: 4015
You can store the original POJO payload as a message property to access it later in the flow. See here for an introduction to the Mule message property scopes:
http://blogs.mulesoft.org/mule-school-the-mulemessage-property-scopes-and-variables/
Upvotes: 1