This allows Groovy codes to be executed on the current message.
Mule will bind a number of objects to the groovy context:
- muleContext - A reference to the MuleContext object.
- eventContext - A reference to the event context. This allows you to dispatch events progammatically from your script.
- message - The current message.
- payload - The payload of the current message. This is just a shortcut to $message.payload.
- service - A reference to the current service object.
- id - The current event ID. This is a UUID created for events in Mule.
- log - A logger that can be used to write to Mule's log file.