InterviewSolution
| 1. |
What is a Mule transformer? |
|
Answer» A Mule transformer is used to strictly enforce the types of data it receives and its outputs. One CONFIGURATION can be used to relax this - An exception won’t be reported for bad input, but the original message will be returned without enforcing the expected result type by the transformer. Thus, this option should be used sparingly. A depiction of a Mule transformer is shown in the flowchart below. Mule has multiple transformers and each project you do might potentially have one transformer. There are different ways in which a transformer can alter a message:
Usually, transformers come in pairs. In these pairs, the second transformer cannot perform what the first one performs. As an example, the payload format transformations such as compression and decompression, are handled by 2 different transformers. One of these transformers is able to reverse the action of the other one. This is what is called a round-trip transformer. The original message should be restituted by making a message go through a transformer and its round-trip. |
|