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
1
vote
1 answer

Mule parameters in host http:request-config not working correctly

I am trying to make an inbound endpoint to consume a REST API, it works if I don't add the filter parameters but when I do it doesn't work.
Paperbag Writer
  • 823
  • 1
  • 11
  • 39
1
vote
1 answer

mule datamapper xml to csv conversion

Below is my xml input: project1 java project2 mainframe I…
1
vote
1 answer

How to validate a excel file in mule

I am new to mule.I need to input a excel file to mule from a watch folder.i need to check wheather,that excel file is valid or not. What is the best way to validate an excel file in mule
1
vote
2 answers

get value from request header in http call -mule

I am developing a mule application. My start point is http. I need to authenticate my http calls using an authentication token which I am sending as request header. Now, How do I get this request header value in my Mule application?
1
vote
1 answer

Database watcher for mule

How to trigger mule application when the value of the row in a database gets updated. Thanks in advance.
Hali
  • 591
  • 2
  • 5
  • 20
1
vote
2 answers

Repeatedly calling a web service in mule

I am working on a mule studio application in which I am calling a soap web service for getting status of a particular process. If the status is PENDING, I have to call the same web service until the status become COMPLETED. What approach I have to…
Hali
  • 591
  • 2
  • 5
  • 20
1
vote
3 answers

Need clarification on "Transport Barrier" in understanding properties

i have read all "OUTBOUND" properties in Mule floe will be converted to "INBOUND" properties on crossing the "Transport barrier". i could not understand what is this "Transport barrier mean" . Is it calling an external world from an Mule outbound…
Naveen Rayappa
  • 119
  • 3
  • 17
1
vote
1 answer

Session variable are wiped out when passing through VM endpoint in Mule ESB ( Uses AMQP)

I'm using very simple flow, From the first flow I'm taking message from AMQP ( Ack Mode: Manual) and passing it to second flow via VM , In the 2nd flow where I'm using AMQP acknowledgement processor to acknowledge each message. When we use VM,…
star
  • 1,493
  • 1
  • 28
  • 61
1
vote
1 answer

Difference between MULE_AUTO and MANUAL in AMQP connector Mule ESB

Do any one knows what is the exact difference between MULE_AUTO and MANUAL in ACK mode of AMQP connector ( Mule). Because I have observed that If ACK Mode: AMQP_AUTO -> Once the message is picked up, it is being deleted automatically If ACK…
star
  • 1,493
  • 1
  • 28
  • 61
1
vote
1 answer

NullPayload vs null check

According to the following ticket: https://www.mulesoft.org/jira/browse/MULE-6427 For NullPayload I should be able to use : but that doesn't work. It fails. I am using Mule 3.5.1 Here is an example flow:
jon lee
  • 887
  • 1
  • 15
  • 32
1
vote
1 answer

How to Aggregate Multiple Message in to One Message and print in Mule

Hi I am working with Any Point Studio and i have a scenario where Mule is reading from the path suppose it is reading 2 files from some path and its treating both the files as 2 separate messages i want to combine both in to one. I also want to…
Utsav
  • 1,593
  • 4
  • 22
  • 46
1
vote
1 answer

Mule error --2 . Failed to invoke method. Message payload is of type string

I have a mule flow that invokes a method and sets the return value in the payload . Here's the part of my flow that does it
userNotFound
  • 347
  • 1
  • 4
  • 13
1
vote
2 answers

How to Implement Parallel Processing of Message in Mule using VM and Request-Reply Scope

Hi i am working with Mule Any Point Studio and i am curious to know about how this works with VM and Request-Reply scope so that Mule is able to asynchronously process the multiple incoming calls to Mule. I just want to know how Request-Reply scope…
Utsav
  • 1,593
  • 4
  • 22
  • 46
1
vote
4 answers

How to Extract the Flow Name and MessageProcessor Name using MEL - MULE ESB

I'm not sure, how can we extract the flow-name and message-processor Name through MEL. For example I have multiple message processor. For logging, i need to extract the flow Name and Message-processor, so that I can find out transaction has crossed…
star
  • 1,493
  • 1
  • 28
  • 61
1
vote
1 answer

Mule ESB : Which has better performance -- scripts (java script,groovy,ognl etc ) or java code through Java component or transformer

I had this question in mind for long time and am jotting it down now. Which will be a best practice or has an edge over others while transforming or processing data in Mule ESB. I am curious to differentiate between the following components. Java…
Naveen Raj
  • 801
  • 11
  • 26