Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MEL Details Session 2

Abhi
June 11, 2015

MEL Details Session 2

MEL Details Session 2

Abhi

June 11, 2015
Tweet

More Decks by Abhi

Other Decks in Technology

Transcript

  1.  Use of MEL  Access Object Level Properties 

    Access Method Level Properties  Operators  Operators Evaluation  Data Extraction  Topic for next session  Reference
  2. -In the previous slide example, MEL is calling the inbound

    property from the mule message for the value of “Host” -All properties are stored in Map -There are two ways to access them -#[message.getInboundProperty(‘host’)] -#[message.InboundProperties[‘host’]] -In order to access Mule Registry, use below expression -#[app.registry]
  3. If payload is of type java object then properties can

    be accessed directly by calling the fieldname from payload. For example, payload is of CustomerDetails object and want to access lastname then use the below expression #[payload.lastName]
  4. If payload is of type java object then methods can

    also be triggered using MEL For example, payload is of CustomerDetails object and want to trigger getFirstName method then use below expressiono #[payload.getFirstName()]
  5. + (Used for addition/Concatanation) - / * % (Reminder Operator)

    #[‘hello’ + ‘John’] => Hello John
  6. Standard Comparison Operators: ==, !=, >, <, >=, =< Contains

    – Similar to like Operator Is- Checks the type of an object Mainly used in Choice Router