Transformers
Transformers are the processors mainly responsible for enhancing or transforming the Mule event. They’re responsible for carrying out all the logical transformations. Let us learn about a few transformers.
Set Variable
You can configure a new variable in a Mule event with the help of the Set Variable component. To configure the variable, you need to assign a name and value to the variable (see Figure 4.38):
Figure 4.38 – The Set Variable component in Anypoint Studio
Figure 4.38 shows us the configuration of the Set Variable component. The next component is Remove Variable.
Remove Variable
This component helps you to remove an existing or default Mule variable from the Mule event.
To configure the Remove Variable component, you need to enter the name of the variable that needs to be removed from the Mule event (see Figure 4.39):
Figure 4.39 – The Remove Variable component in Anypoint Studio...