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
2 answers

How to transform the JDBC reponse to HTTP response In MULE ESB

I am trying to select data from database using mule studio i have done all the jdbc connection and getting data from database.But unable to respond to client with JSON my client is CURL client sending data to mule in JSON like this curl -H…
faisal shaik
  • 160
  • 4
  • 22
0
votes
2 answers

How to respond custom JSON to HTTP request in MULE ESB

i am using mule studio i am connecting to postgressql for data selection i am doing well i just struck in middle .i am sending curl request to mule like this curl -H "Content-Type: application/json" -d '{"id":"1"}' http://localhost:8081/selectdb i…
faisal shaik
  • 160
  • 4
  • 22
0
votes
3 answers

how may i select the values based on where condition in Mule ESB

I am new for MuleESB. I don't have much knowledge about flow. I couldn't find proper documentation for Mule. I am trying to fetch the data from database using below code, but I am unable fetch the data. There is no error shown, so I dont know what…
faisal shaik
  • 160
  • 4
  • 22
0
votes
1 answer

How to returned with custmise response to client using Mule ESB

I am new for the mule esb but i know other ESB patterns my issue is i have done a sample which will insert a data into DB.its working fine but its not giving any response to client so client is getting nothing from server my sample code is
faisal shaik
  • 160
  • 4
  • 22
0
votes
1 answer

Mule object to string transformer adding one extra question mark at the start of string

i am doing a Object to string conversion, but when i am doing it is adding one extra question mark at the very begin of string. below is my flow code
vashishth
  • 2,751
  • 4
  • 38
  • 68
0
votes
1 answer

Muel-esb: Testing Choice Router

Is there a way to test a choice router for the following scenario which is based on the http.status? I am seeking a way to test the first condition of the router
BreenDeen
  • 623
  • 1
  • 13
  • 42
0
votes
2 answers

Mule ESB MEL Expression returns NULL

Good morning to everybody. I have an issue with using MEL Expression in a JDBC ORACLE database query. In particular the Mule flow accepts a Excel file that is transformed in a Map through a Datamapper and its fields are used to make a query in a…
Paride Letizia
  • 330
  • 1
  • 4
  • 23
0
votes
3 answers

Mule ESB -Error when dynamically setting Soap Operation in mule

Please help me on this error.I have a soap client calling the service with 3 operation. So in flow1 i'm setting the session varaible to store the operation. And in flow2 i have used set property to accessing those variables to come as outbound…
star
  • 1,493
  • 1
  • 28
  • 61
0
votes
1 answer

Mule: How to use until successfull processor for service calls

Please help me on this logic. I have to call the service and get the response back.If the service is down or something have to retry 3 times and once exhausted need to log in DLQ.I'm using until successful processor.For success scenario i'm getting…
star
  • 1,493
  • 1
  • 28
  • 61
0
votes
3 answers

Mule ESB : Error in Exporting and Importing the project in Mule studio

Please help me.I have developed a flow with reference files and other message processors. I have placed "wsdl" in src/main/resources along with other xsd's. Also i used "XSLT transformer, Message property transformer and Datamapper" .I have…
star
  • 1,493
  • 1
  • 28
  • 61
0
votes
1 answer

Unable to access flowVars(MEL) when it routes through until successful message processor in Mule ESB

Hi i'm new to mule and developing mule project for first time, Please help me. In my main flow i have set varaible where i have captured original payload, by the way i have to call one service, if the service is down or something it has to retry 3…
star
  • 1,493
  • 1
  • 28
  • 61
0
votes
1 answer

Mule ESB as a message router for TCP based messaging protocols ( multiple persistent connections )

Mule ESB as a message router for TCP based messaging protocols ( multiple persistent connections ) Would Mule ESB be suitable for building up application with Server and Client endpoints which would offer persistent TCP connections on both Server…
Tiho
  • 85
  • 1
  • 6
-1
votes
0 answers

Migration to mule 3 to mule 4

mule 3 logic: it’s using scripting transformer and executing i want mule 4 to achive same mule 3 logic ${files- base-path}ZipListViews.sh Account" .execute (); Above code is in scripting transformer I want this in mule 4 how can I achieve…
-1
votes
1 answer

I am trying to append a map to a map of same Name in Mule . But the the values are getting overwritten

I am trying to append a map to a map with the same Name in Mule Dataweave, but the the values are getting overwritten. Just after this I am trying to map other values that I store in flow vars: Basically, say if there are 11 records already…
-1
votes
4 answers

How to replace the payload from json object in mule

Prepared json request like below. [{ "type": "John", "attributes": { "AA": [{ "value": "1234" }] } }, { } ] I need to replace the below one with empty i.e means blank ''. , { } Could you please…
Gopi
  • 105
  • 1
  • 7
  • 24
1 2 3
26
27