Questions tagged [mule4]

Version 4 of Mule, a lightweight enterprise service bus (ESB) and integration framework provided by MuleSoft

Mule is a lightweight enterprise service bus (ESB) and integration framework provided by MuleSoft. According to the documentation, Version 4 aims at simplifying the expression language and reducing management complexity. This way, it shall be possible to deliver applications faster than in earlier versions of the product.

1166 questions
0
votes
2 answers

Combining the elements of array and reformatting the output

I am having an input JSON which I would like to transform using Mule's dataweave 2.0. Below is the input JSON. [ { "data1": { "role": "analyst", "name": "ABC" }, "data2": { "role":…
Mohit Mehrotra
  • 201
  • 1
  • 6
  • 12
0
votes
1 answer

how to remove quotations from dataweave 2.0 script?

dataweave 2.0 script in Anypoint Studio 7.3 while building JSON always add quotations to the object, even if it's not value but new JSON object. My code looks like this: %dw 2.0 output application/java import * from dw::core::Strings var…
vc.0
  • 1
  • 2
0
votes
1 answer

How can i use Filter and Mapping with Dataweave 2

I have a input Json, and i must edit it with a transform message to output. i have tried filter and mapping together but i did not have the expected result here is the Input : { "success": true, "identities": [ { …
DomRenju
  • 3
  • 4
0
votes
1 answer

Mule 4 - concatenating payload with some attributes

New to Mule4 and playing around. I have a setPayload transformer and under setting I am adding the following #[payload ++ " " ++ message.attributes.queryParams.lname] However I am getting the following error. What is the right way of doing…
borna
  • 906
  • 3
  • 12
  • 32
0
votes
1 answer

How to use comma inside JSON value in dataweave 2.0

I have a dataweave 2.0 transformation script: %dw 2.0 output application/json --- { "keyName" : "foo, bar", "keyname2" : "foo" } the outupt is: decrypted payload: {"keyName":"foo","bar","keyName2":"foo"} the comma between quotation marks ruin…
vc.0
  • 1
  • 2
0
votes
1 answer

Which component of Mule 4.1 replaces Mule 3.9 timer-interceptor

Which component of Mule 4.1 replaces Mule 3.9 ?
ravibeli
  • 484
  • 9
  • 30
0
votes
2 answers

Mule 4.1.4 Failing upload compressed xml file content through HTTP POST request

I am migrating Mule 3.9 file upload logic to Mule 4.1.4 version. For simplicity, in Mule 4.1.4 I am trying with basic logic using http connector to upload compressed xml file content to post to HTTP POST request, it keep failing with BAD_REQUEST,…
ravibeli
  • 484
  • 9
  • 30
0
votes
1 answer

Mule4 when expression failing for json array "contains" check

Working on Mule 3.9 to Mule 4.x migration work, API recieve json input payload as shown below, I am trying to check whether I have DFU string value existing in this array payload.sec_entities. Observed that in log statement condition check is…
ravibeli
  • 484
  • 9
  • 30
0
votes
1 answer

how to activate new instance in API Manager and stop old instance on mule?

I'm managing my API from exchange and it is working with Endpoint with Proxy. I gave implementation URL where i implemented the API in Cloudhub. Now i did some change to raml file and published to Exchange with v2. Then i created instance same API…
Thiru
  • 404
  • 1
  • 16
  • 44
0
votes
2 answers

Mule 4: DW2 - Array of objects, distinct by object field

I want an array of objects that are distinct by a certain field. The array is already sorted by this field so identifying which fields to remove should follow this: the value of the previous field should be different from current value of the…
Alex
  • 4,457
  • 2
  • 20
  • 59
-1
votes
1 answer

Unable to add additional flows to MuleSoft generated API Proxy Code

I have a mulesoft proxy code that I generated by configuring an HTTP proxy in CloudHub and then downloading it. The Anypoint Studio project has 3 mule files, http-proxy.xml inbound-config.xml outbound-config.xml. The http-proxy.xml has the proxy…
-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
2 answers

How to split a json array in mule 4

I need assistance in splitting a json array in my payload. The value i need to split is "coordinates": [25.12345672910156, -97.66523709893123] into "coordinate1": 25.12345672910156 and "coordinate2": -97.66523709893123. my payload { …
-1
votes
2 answers

How to get size of XML message payload in KB using dataweave

I have a requirement to calculate the size of incoming payload in KB. The incoming payload is an XML. I tried using sizeOf(payload.^raw)/1000 but this only works for JSON format and not XML format.
Zak01
  • 7
  • 3
-1
votes
1 answer

How to read value from property file from inside a select query in DW 2

I am trying to read table name from property file instead of reading it from a variable. Currently I am doing the below and its working, but I want to externalize the table name and read it from property file instead entry in property file tablename…
Sunny85
  • 37
  • 1
  • 6