Questions tagged [mule-el]

The Mule Expression Language (MEL) is the primary language used for formulating such expressions throughout Mule ESB.

Mule Expression Language (MEL) supports the work of message processors by providing a means of accessing, manipulating, and using information from the message and its environment. All features of MEL can be used in XML application configuration files, and a few require additional Java programming. All MEL features are available within the visual interface provided by Mule Studio.

A typical MEL expression combines one or more operands with zero or more operators in a Java-like syntax and returns the resulting value.

At the heart of MEL are property expressions of the form contextObject.property. These provide easy access to properties of the Mule message and its environment. For example, the expression message.payload represents the payload property of the message context object. Its value is the message payload.

Java method invocations and assignments are the other common MEL expressions.

In most cases, a MEL expression stands alone as the value of a configuration property of a message processor. Mule evaluates the expression at runtime, and the message processor uses the result.

The syntax of a MEL program largely follows Java, but MEL implements dynamic typing by performing type coercion at runtime. Semicolons follow each statement except the last, whether the statements are on one line or separate lines. Return statements are usually unnecessary, because a MEL program returns the value of the last MEL statement executed.

MEL operators and basic operands are conventional and predictable (for example, 2 + 2 == 4 returns true). Property expressions provide convenient access to information from the message and its environment (for example, server.fileSeparator returns "/" if the application is running on a Linux server, and "\" on a Windows server.).

392 questions
0
votes
1 answer

XPATH in mule flow returns multiple values

I have a requirement where I run xPath evaluator against xml payload in mule flow. This xPath evaluator can return single or multiple values. I need to store these values in flow variable and use somewhere later in the flow. Can someone help me…
user2324686
  • 71
  • 2
  • 13
0
votes
1 answer

Mule ESB, "IN" operator within a JDBC transformer

Let's imaging that I would like to pass a list into a JDBC transformer. For instance, I create the list in a flow : // Some calculations and stuff def…
Vahid Rafiei
  • 382
  • 2
  • 10
0
votes
1 answer

Mule Enrichment: enrich xml payload with http endpoint response

I'm new to mule and working on a POC. I want to enrich the payload(target.xml) by calling an http endpoint which returns xml as response (source.xml) .
Pankaj
  • 3,512
  • 16
  • 49
  • 83
0
votes
1 answer

Parsing for errors from Salesforce Connector in Mule ESB

I'm using Mule ESB 3.4 CE. I have this flow which uses Salesforce connector to create contacts. I want to parse the errors and do some action. ....
Tech Matrix
  • 283
  • 2
  • 7
  • 13
0
votes
1 answer

Can I access(and change) a property of smtp-connector programmatically?

I am running mule 3.3.1 CE. I have an use case for which I need to be able to dynamically set the mime type on a smtp endpoint. But it appears I am unable to do so as it is currently bugged: https://www.mulesoft.org/jira/browse/MULE-6005 Also, if I…
Zavior
  • 6,412
  • 2
  • 29
  • 38
0
votes
2 answers

Mule: How Access Field in Pojo From JSON To Object

I building Mule project who receive JSON by HTTPComponent and convet to object. My problem is can't acess field in object converted. My flux's XML is:
Diogenes
  • 19
  • 7
0
votes
2 answers

Mule Cloud Hub Deployment Error How can i resolved it?

I have done flow Salesforce to JIRA. Its Working fine in Local machine. When i have deployment on cloud hub its not working Its show the error. The following end point URL i am using.
user3129532
  • 69
  • 3
  • 9
0
votes
1 answer

How can i use XPATH in mule for Getting the XML node values?

#[xpath://soapenv:Envelope/soapenv:Body/out:notifications/out:Notification/out:sObject/urn:Summary] I am using the above XPATH Code for fetching the XML node values. It's not Working. How can Correct this. But the following code Working fine.…
user3129532
  • 69
  • 3
  • 9
0
votes
2 answers

How can i get the XML values in mule?

In Mule I am using SOAP Component it is receiving the WSDL file in XML format. After that I want to get The XML data. but it show error. Here i am using #[message.InboundProperties['Subject']] It show the Null Value. This my XML…
user3129532
  • 69
  • 3
  • 9
0
votes
1 answer

How the Mule Listen other Web Application Data?

I Want to integrate Salesforce and JIRA by Using Mule. Both are Connecting Properly by using Hard Code. But i want when i am trigger the object in salesforce that time mule accept receive the data of object in salesforce. In Mule Not Listen my…
0
votes
1 answer

How can i receive Salesforce Outbound Message from Mule?

I have use Outbound Message in salesforce. When the Trigger is Occur on the particular object outbound Message to pass particular End URL. here I want to receive the Outbound Message from the Mulesoft(EndPoint URL) . I have tried…
0
votes
1 answer

Mule: How to pass File from FTP to Java class in Mule ESB?

In Mule, I am downloading files from FTP server. I want to pass all the files in this directory to my java class which should be performing actions after Download_ZIP_File in my flow. I need to perform actions like reading text files and unzip the…
Rizwan Sohaib
  • 1,240
  • 17
  • 27
0
votes
1 answer

Mule: JUnit test case to call a service which is in middle of the Mule flow

I'm newbie for JUnit test case. Please help me on this issue. I have 2 mule flows- first flow having MQ as inbound and it has datamapper to transformer the xml. With the first flow input, i'm calling second flow where we are calling the existing…
star
  • 1,493
  • 1
  • 28
  • 61
0
votes
1 answer

Working with arrays within objects in expressions

Good morning! I'm trying to create a Web API using Mule that will transform one JSON-based request from system A into another JSON-based format, invoke a Web API on system B using the transformed JSON, take the JSON response from system B and…
Becca Dee
  • 1,530
  • 1
  • 24
  • 51
0
votes
1 answer

How to insert the CSV values into postgresdatabase

i have done this configuration
faisal shaik
  • 160
  • 4
  • 22