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

Mule flow is not triggering

I am using Groovy inside Poll to check file existence at given location. My flow is working fine, when there is a file. But If I delete that file, flow is not triggering.Below is my code
Nitesh
  • 1,477
  • 5
  • 23
  • 34
0
votes
1 answer

Number formatting not working in Mulesoft dataview

I am trying to format number in below json string in Mulesoft. { "Data": [ { "Date": "10/12/2012", "AccountNumber": 123456, "Amount": 1424511.76 }, { "Date": "10/12/2012", "AccountNumber": 123456, …
Nitesh
  • 1,477
  • 5
  • 23
  • 34
0
votes
1 answer

How to parse FlatFile in mulesoft

I am new to Mulesoft. I have one flatfile- RHR001NTT PQR 2018090920180505 STR0010057830DFLT 74253J461000490 STR0020000000000000000000000000000000 I want to iterate each line and then I want to take each row to get substring from one position…
Nitesh
  • 1,477
  • 5
  • 23
  • 34
0
votes
1 answer

Mule ESB Any point Studio- Show error when web service is down or timeout

I have consumed a wsdl service which is working fine and if you change any request it will give you 500 error now what i need to display a predefined message if the web service that i am consuming is down & also for timeout. Also one thing some of…
Prince
  • 101
  • 6
0
votes
1 answer

Ignore case of xpath extracted value in Mule expression

The Mule expression that I have is: xpath3('//CallingSourceSystemNm') == "CIMLOOKUP" and I want to pass this condition even when there is value like "CIMLOOKUP" that is upper "CIMLOOKup" that is mixed "cimlookup" that is lower I tried the mule…
SDE
  • 85
  • 1
  • 13
0
votes
5 answers

How to run job every 15 mins using quartz in mule

How to configure corn expression to run the job every 15 mins. Configured below one in the code but it is not working fp.cron.expr=0 15 0 ? * * Can you please help on this
Gopi
  • 105
  • 1
  • 7
  • 24
0
votes
1 answer

Any Mulesoft adaptar or connector available for Temenos Payment Suite TPH

Would like to know is there any Mulesoft connector/adaptar available for connecting Temenos Payment Suite.. like T24 Mulesoft connectors.. Require details on how to connect TPH to Mulesoft ESB. so could you please share the link / details. It…
Ramya
  • 93
  • 4
  • 12
0
votes
2 answers

Accessing Complex xml element in Mulesoft's Dataweave

I have input xml like this and need to map Value of Complexelement2.value to variable "Access" in output only when Complexelement2.name is "AccessLevel" .
SystemType
0
votes
3 answers

Mule outbound properties not available in second calling flow

If from mule flowA, I am making http-request call to flow B and flow C sequential. I have set outbound-properties in Flow A, which I am getting as inbound-properties in flowB but not in Flow C? Is it expected? If so why?
0
votes
1 answer

Convert list of JSON Object to single list on Mule DataWeave

Input:- [ { "appName": "helloworld-1" }, { "appName": "helloworld-2" } ] Expected Output { "appList": [ "helloworld-1" , "helloworld-2" ] } Can anyone guide me for data weave script for this ?
0
votes
3 answers

Mule Dataweave : Filter in combination with Default function not working

Im using Mule dataweave, here is my request, i want to filter my request to code == "P" if request containing Code = p not present then always default to code == "C" because code = C always present in the incoming request. Request: { …
star
  • 1,493
  • 1
  • 28
  • 61
0
votes
2 answers

how to remove specific fields from List maps using dataweave mule

how to remove specific fields from Array maps using dataweave without iterating the array Input: [{a:1,b:2,c:3,d:4},{a:5,b:6,c:7,d:8}] I want to remove c and d fields from array(c and d values are dynamic) output: [{a:1,b:2},{a:5,b:6}] How can we do…
Gopi
  • 105
  • 1
  • 7
  • 24
0
votes
2 answers

Non blocking flow with Mulesoft

I have a mule flow that has to work the following way. HTTP listener listens to incoming calls and immediately responds with a job id. The incoming message is queued into a worker. It works on it for a while and returns the message back to the…
lonelymo
  • 3,972
  • 6
  • 28
  • 36
0
votes
2 answers

Which connector do we need to use the put the file in share path location in mule cloud

I want to put the csv file in shared path location. I tired with file connector. It does not work.Which connector do we need to use the put the file in share path location in mule cloud.
Gopi
  • 105
  • 1
  • 7
  • 24
0
votes
1 answer

Not able to convert payload to JSON after consuming message from Kafka Consumer in mule

I am using kafka consumer to consume the message from kafka. I am able to consume the messages when I tired to convert message to JSON or java using data weave. It is not getting transformed. Actually message kept is json. I could see type of…
Gopi
  • 105
  • 1
  • 7
  • 24