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
2
votes
1 answer

Mule 4 : Streams : How to check if payload is a Stream in Mule 4?

I am new to Mule 4 and have following understanding/doubts regarding streams. I will really appreciate the help. When will mule 4 component generate a stream? For example, database select can return both array of objects and a single value. So will…
Bibek Kr. Bazaz
  • 505
  • 10
  • 34
2
votes
1 answer

Mule 4 : Memory Management : how to manage variables having huge data for example 300 Mb?

I am working on a mule application that fetches hundreds of thousands of records from database, do a map to change the structure of the incoming records using dataweave and insert the data in Salesforce. The steps I follow are: fetch all the…
Bibek Kr. Bazaz
  • 505
  • 10
  • 34
2
votes
2 answers

how to check whether the JSON recieved is empty/ nulll in mule 4

I am trying to check whether the json object is empty/ null but I am getting the following error: org.mule.runtime.core.api.expression.ExpressionRuntimeException: "Unable to parse empty input, while reading `obj` as Json. 1| ^ Trace: at main…
HMT
  • 2,093
  • 1
  • 19
  • 51
2
votes
2 answers

Transformation of JSON data in mule 4

I have a requirement wherein I have to convert JSON data from one format to other. I have to fetch corresponding values of JSON array and make them a key value pair. Below are the required details: Input: "Headers": { "Header": [ { …
Manvitha
  • 21
  • 3
2
votes
2 answers

Validate the json Array with Either one field required in Mule 4

Request Json Looks like the below :- { "eNumber": 8506493, "details": [ { "id":12345, "name": xyz123 } ] } As part of requirement, I need to check the "details" array that either "id" or "name" field must present.…
Infinity
  • 484
  • 2
  • 8
  • 21
2
votes
2 answers

Mapping value only in DataWeave 2.0/Mule 4

I'm a bit of a rookie at Mule 4 and have been trying to figure out how to map only the value from an array. My array is: [ { "ssn": "999999991", "contributionCode": "1", "amt": -100.000000 }, { "ssn": "999999991", …
Tek_Datt
  • 25
  • 3
2
votes
1 answer

Concept of default headers in mule

I want to understand the concept of default header in mule.I want to hit a get api call[the code is written in java] from mule and I am sending a token in the header, but I am setting the token in the default header inside the http request…
HMT
  • 2,093
  • 1
  • 19
  • 51
2
votes
1 answer

Mule4 Cannot find custom java class

I'm using Anypoint Studio 7 and having an IDE problem using custom java class in src/main/java. I'm referencing it using java:invoke. The error is something like this. Unable to find type 'com.sample.TestClass' on build path of project…
Mnick
  • 233
  • 3
  • 15
2
votes
1 answer

JMS Message consumed continously

I have a JMS listener config in Mule 4 that would subscribe to messages from a topic in Tibco JMS broker. In case of any failure, the JMS message gets persisted in the topic. Consider if there is a runtime issue or some intermittent issue while…
veejay
  • 81
  • 2
  • 12
2
votes
1 answer

Dataweave check if a value is contained within a YAML list

I want to check if the value present in the YAML list. I have product.yaml intGrp: - "A" - "CD" - "EF" - "ABC" - "CDEF" From transform message I want to check If (intGrp contains payload.myvalue) this else that Tried %dw 2.0 var prop =…
Neethu Raj
  • 37
  • 1
  • 6
2
votes
2 answers

Reading CSVs w/o Headers in DataWeave 2.0

How do you parse a CSV without a header in DataWeave 2.0? I have the following CSV: Chris,Doe,Student Bob,Smith,Teacher and am trying to merely convert it to JSON like this: [ [ "Chris", "Doe", "Student" ], [ "Bob", "Smith", "Teacher" ] ] or…
jerney
  • 2,187
  • 1
  • 19
  • 31
2
votes
1 answer

Convert CSV to XML using Mule 4

Facing issues while converting CSV to XML using dataweave 2.0 in mule 4. input payload (CSV): employee_id,amount 12345,75 67890,15 13579,38 Output Result (XML):
VinnyChinn
  • 39
  • 2
  • 8
2
votes
1 answer

Has anyone faced this error in Mule 4, Anypoint studio 7.3.2 - 'Error executing scaffolder'

I am trying to generate flows from api RAML in Anypoint studio 7.3.2 when I am getting an error - 'Error executing scaffolder'. The RAML does not contain any errors and works fine. But it does not help me in generating flows from it. I have to…
SGhoshal
  • 21
  • 1
  • 2
2
votes
1 answer

Use p() function mule to fetch secure property in dataweave 2.0

I have a encrypted value in my property file using mule secure property eg: password = !#$#%%%f (encrypted) I want to dynamically fetch this value unencrypted using the p function in dataweave based on the input parameter passed in the request I…
user3428616
  • 65
  • 4
  • 14
2
votes
1 answer

Calling an Oracle function in mule 4

How do I get the return value from an Oracle funtion with named parameters? I am using :result = call…
Sultan
  • 319
  • 3
  • 11