Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@karsaroth
Created September 29, 2015 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karsaroth/af7a1c7105263e3f34ce to your computer and use it in GitHub Desktop.
Save karsaroth/af7a1c7105263e3f34ce to your computer and use it in GitHub Desktop.
DSLD Blog Post Gist
contribute(currentType(subType('groovy.lang.Script'))) {
property name : 'log', type : 'org.apache.commons.logging.Log', provider : 'Mule', doc : 'A logger that can be used to write to Mule\'s log file.'
property name : 'muleContext', type : 'org.mule.api.MuleContext', provider : 'Mule', doc : 'A reference to the MuleContext object.'
property name : 'message', type : 'org.mule.api.MuleMessage', provider : 'Mule', doc : 'The current message.'
property name : 'originalPayload', type : 'java.lang.Object', provider : 'Mule', doc : 'The original payload object.'
property name : 'payload', type : 'java.lang.Object', provider : 'Mule', doc : 'The transformed payload of the current message.'
property name : 'src', type : 'java.lang.Object', provider : 'Mule', doc : 'The transformed payload of the current message.'
property name : 'result', type : 'java.lang.Object', provider : 'Mule', doc : 'A placeholder object where the result of the script can be written to. Usually it\'s better to just return a value from the script unless the script method doesn\'t have a return value.'
property name : 'flowVars', type : 'java.util.Map<String, Object>', provider : 'Mule', doc : 'Flow variable map, defined by earlier components in the flow.'
property name : 'sessionVars', type : 'java.util.Map<String, Object>', provider : 'Mule', doc : 'Session variable map, defined by earlier components in the flow.'
property name : 'exception', type : 'java.lang.Throwable', provider : 'Mule', doc : 'If an exception payload was generated before this script, this will contain the exception, otherwise it will be null.'
property name : 'eventContext', type : 'org.mule.api.MuleEventContext', provider : 'Mule', doc : 'An event context for the current mule event.'
property name : 'id', type : 'java.lang.String', provider : 'Mule', doc : 'The mule event\'s id.'
property name : 'flowConstruct', type : 'org.mule.api.construct.FlowConstruct', provider : 'Mule', doc : 'The mule event\'s flow construct.'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment