org.mule.api.annotations.expression
Annotation Type Groovy
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface Groovy
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.
Optional Element Summary |
boolean |
optional
|
value
public abstract String value
optional
public abstract boolean optional
- Default:
- false
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.