danw
danw

Reputation: 1648

Mule - how do you clear the payload/set the payload to null?

How do I clear the payload/set it to null in Mule? I've been using:

<set-payload value="" doc:name="Set Payload"/>

This works fine until I add an element to my flow using the GUI in Mule Studio, then the element changes to the following, which throws errors:

<set-payload  doc:name="Set Payload"/>

Thanks in advance.

Upvotes: 3

Views: 14588

Answers (1)

Seba
Seba

Reputation: 2319

Try setting it explicitly to null:

<set-payload value="#[null]" doc:name="Set Payload"/>

Upvotes: 16

Related Questions