public class MyComponent {
public Object process(@XPath("/Envelope") Document doc
@Function("uuid") String id) {
// do stuff
}
}
@Function Annotation
Mule Runtime Engine versions 3.5, 3.6, and 3.7 reached End of Life on or before January 25, 2020. For more information, contact your Customer Success Manager to determine how you can migrate to the latest Mule version. |
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 |