public class MyComponent {
public Object process(@XPath("/Envelope") Document doc
@Function("uuid") String id) {
// do stuff
}
}
@Function Annotation
A parameter injection annotation expression on the message payload with the result being passed into the method, this annotation exposes a common set of functions used in Mule such as a counter, UUID generator, date and timestamps.
Functions
Function | Description |
---|---|
@Function("now") |
Returns a |
@Function("date") |
Returns a |
@Function("dateStamp") |
Returns a |
@Function("dateStamp-dd-MM-yyyy") |
Returns a |
@Function("uuid") |
Returns a globally unique identifier as a |
@Function("hostname") |
Returns the hostname of the machine Mule is running on as a |
@Function("ip") |
Returns the IP address of the machine Mule is running on as a |
@Function("count") |
Returns a local count as a |
@Function("payloadClass") |
Returns the fully qualified class name of the payload as a |
@Function("shortPayloadClass") |
Returns just the class name of the payload as a |