As the name suggests, this post is to capture few tips while using DataWeave for easy transformation of incoming payload into desired payload: If this then that Conditional logic in DataWeave is achieved by using when and otherwise. Below example shows two usecases of this: