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

Derive parent-child hierarchy from an array using DataWeave

I am using Mule 4.3 and Dataweave 2.x From database am getting following records example: [ { "gp": "G1", "parent": "P1", "child": "C1" }, { "gp": "G1", "parent": "P1", "child": "C2" }, { "gp": "G2", …
1
vote
1 answer

How to iterate over the string using data weave 1.0 and data weave 2.0?

I'm new to dataweave and trying to transform the array and iterate over the "||" values Input: [ { "card":"VISA$$0.0||MASTER$$140.0" }, { "card":"VISA$$0.0||MASTER$$147.0" } ] The DataWeave code that I tried: %dw…
1
vote
2 answers

Is it possible to create in a Mule 4 Module a Scope with access to a connection?

I'm following the examples included in the documentation related to the creation of a Module and its different components. I've been able to create Operations that can use connections, but now I'm trying to do something similar with a Scope…
Berigoner
  • 93
  • 1
  • 7
1
vote
2 answers

Mule 4: map value if key exists

I have a few boolean fields in the payload, in any case only ONE field will be true. But sometimes payload will have only two of these boolean fields. I want to check if payload has this boolean field, then use it for mapping else ignore it. Input…
Abjt G
  • 39
  • 7
1
vote
1 answer

Mule 4 How do we validate response against RAML?

I am defining a new API and in Design centre have defined RAML endpoint as : /employees: get: type:{ ResourceTypes.getInstance: { typeName: object, exampleInstance: !include examples/get-employee-response.json } …
1
vote
1 answer

how to upload to specific folder inside Azure blob container with Mule?

In my Mule 4 application I Azure Storage connector to successfully upload a blob to my Azure container: However this adds the file into the root directory of "my-container". I want to add the file to my-container/examples - i.e. the examples folder…
java12399900
  • 1,485
  • 7
  • 26
  • 56
1
vote
1 answer

Retry http request only if in timeout cases

I want to retry an HTTP request only if the error is a timeout error otherwise the existing error handlers should handle the error What I am using now as a solution is a try scope inside the until successful scope and propagate the error if it is a…
S4L4H
  • 402
  • 1
  • 5
  • 21
1
vote
0 answers

Mail sender fails due to bad credentials

I am trying to send mail using SMTP in Java. Below are the details:
Abhay
  • 314
  • 1
  • 2
  • 11
1
vote
3 answers

dataweave transformation

I have an input of the following payload for a POST method: { "order": { "Column_X": "X", "Column_Y": "Y", "Column_Z": "Z", "Column_W" : { "div_1": "some text", "div_2": true, "div_3": 2 } }, "mapper": { …
Mio Figlio
  • 11
  • 4
1
vote
1 answer

Transform key/pair into in an Object - Mule 4

I want to transform the below input into the given output. My requirement is to convert the key/value pairs into the Objects having key and value as individual elements in an object. Input: { "data": [ { "Amount": 20, …
1
vote
1 answer

How to get desired output for matching keys in dataweave2.0

Input { "uniqueId": "jhiu78y87y", "appId": "SF", "dob": "BgYN=", "ssn": "Rn=", "dln": "ZJ4=", "dla": "TX", "dle": "2025-09-30" } Need to match the key along with value after that format field have to update. Format field condition…
SP-
  • 37
  • 6
1
vote
1 answer

Stuck on running Mule Jar file without Mule Runtime environment

I am using Mule 3.9 with Anypoint studio 7.2 for API development. After my functionality developed I was able to export to a Jar file which I was supposed to run on my hardware which doesnt support x64 architecture. I got error of not supported…
Sameer
  • 39
  • 6
1
vote
1 answer

Transcoding with dynamic arguments and validator problems

I'm receiving the following…
Zyoumir
  • 33
  • 6
1
vote
0 answers

Externalise Log4j2.xml file in Mule 4 APIs via Spring Beans

We have a specific requirement to load log4j2.xml file from external location rather than classpath. I've tried below approaches: mule_artifact.json: Specifying "logConfigFile" in this json works but the problem is that it has to be absolute path.…
Naveen K Reddy
  • 429
  • 5
  • 13
1
vote
1 answer

How to remove the duplicate elements in arrays of JSON file using Datawave transformations?

Here I want to remove duplicate accounts with the help of account_id for all accounts in this JSON file. There are 12 accounts in this JSON file need to duplicate accounts to make them unique. someone, Please help me resolve this. Here total 12…