Mule Using MEL in Custom Business Events component

235 views Asked by At

Please advise how I need to use MEL in Custom Business Events component, Key Performance Indicators. According to MEL documentation, I need to use the expression #[xpath('//xpath/expression')]

To get access to XML message I use the following expressions:

#[xpath('/Invoices/invoice')] 
#[xpath('//Invoices/invoice/invoiceHeader/InvoiceNo', message.payload)]
#[xpath('/Invoices/invoice/invoiceHeader/InvoiceNo/text()')]

and etc. No results. Please help.

1

There are 1 answers

0
Naveen Raj On

Use the following expression

#[xpath://Invoices/invoice/invoiceHeader/InvoiceNo]
example:#[xpath:AnyXpathExpressoon]