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

Dynamic function call in mule 4

I have multiple functions: fun testadd(payload) = ({ addition: payload.value1 as Number + payload.value2 as Number }) fun testsub(payload) = ({ substraction: payload.value1 as Number - payload.value2 as Number }) fun testmultiply(payload) =…
1
vote
2 answers

How to convert string to json object using DataWeave

How do I convert below input string (which will be retrieved from config.yaml properties file) to required json object using Dataweave? Input: "ABC:123,DEF:456,GHI:789" Required Output: { "ABC":"123", "DEF":"456", "GHI":"789" }
1
vote
1 answer

Mule 4: How to transform a Java Custom Object to JSON

I have a Custom Java Object class as below: package com.me; public class Person { String firstName; String lastName; public String toString(){ return "{firstName=" + this.firstName + ",lastName=" + this.lastName +…
Pierre
  • 51
  • 8
1
vote
0 answers

Parse JSON array response using Gson in mule custom connector

I am trying to parse the JSON response from webservice in my custom connector for Mule 4 here is my JSON response from webservice { "value": [ { "contentType": "plainText", "id": "listItems0", }, { "contentType":…
Bora M.s.
  • 141
  • 7
1
vote
0 answers

MuleSoft RTF: Get Version of the API Deployed

We are using MuleSoft RTF EKS on AWS. Managing about 40+ apps and we want to see which version of the app is running in different environments. I see mulesoft provided rtf-core-usage-calculator…
Learner
  • 157
  • 2
  • 17
1
vote
1 answer

CloudHub Notification - Fails connections from workers in VPC

I developed an API which will trigger email alerts based on some business requirements. To raise email alerts, I used cloudHub create-notification connector. The connector configuration is below:
Sambit Swain
  • 131
  • 1
  • 13
1
vote
1 answer

Unable to set userAccountControl to 512 using LDAPS

I am using MuleSoft to connect LDAP and provision a user. Connection for Mule 4 LDAP Connector is using LDAPS (SSL Connection using trustStore file + password) over port 636. As mentioned in online documents, I am setting valid userPassword…
Sambit Swain
  • 131
  • 1
  • 13
1
vote
1 answer

How to customise an error message generated by the Anypoint API manager standard policy?

There is an API running on the CloudHub (Mule 4.4) and protected with the standard SLA Rate Limit policy. We have a requirement to provide a custom error message body instead of the default one generated by the policy when authentication fails. The…
spoonboy
  • 2,570
  • 5
  • 32
  • 56
1
vote
1 answer

mule 4 http listener - what is the use of ReadTimeout

Using mule 4.4 community edition running on premise while configuring HTTP listener came across this property : Checked online and documentation here Maximum time in milliseconds that the listener must wait while receiving a message. I tried…
1
vote
0 answers

Unable to connect to Google BigQuery using Mule

I am trying to connect to BigQuery for migrating data and I am currently facing some issues in connection. 2 approaches which I am currently focusing on Database Connector with passing JDBC connection string
Karthik
  • 2,181
  • 4
  • 10
  • 28
1
vote
1 answer

.classpath is not getting recreated after adding in .ignore (Anypoint Studio 7)

I'm running into an issue that Anypoint Studio can't create the .classpath for my Mule application project after I have added it the .ignore (which include .settings, .classpath) file. If I also pull someone else's project from git, I get a…
Makavelines
  • 111
  • 6
1
vote
2 answers

How to stop the iteration when the first DTOSteps are selected in Dataweave 2.0?

In my case, I'm trying to update the DTOSteps (first child node) values of @CoverageCd == "TRIA". But my dataweave code updates all the DTOSteps of @CoverageCd == "TRIA". Assume that the variable in this code returns some values. My Dataweave…
codey_08
  • 249
  • 1
  • 11
1
vote
0 answers

How to consume SOAP Web Service secured with OAuth in Mule 4

I want to consume a OAuth secured SOAP API in Mule 4. I want to know how can I pass the bearer token in a header. I tried almost all the things by using transport header and writing as edit inline with key as Authorization and value as Bearer…
JackRack
  • 11
  • 1
1
vote
3 answers

dataweave - How to join the list of sku with same order in one object in the array

How to join the list of sku with same order in one object in the array. Input: [{ "number": "7358", "sku": "301-01", "desc": "1" }, { "number": "7358", "sku": "301-02", "desc": "2" }, { "number": "7359", "sku": "301-03", "desc": "3" }, { …
1
vote
1 answer

How to update the DTOSteps node values based on the logic in xpr using dataweave 2.0

In my case, I have two payloads: domDRC and domPayload (2nd payload). I have to iterate over the layer (child node) and update the DTOStep value of DTOCoverage and DTORateArea in domPayload based on values in layer of domDRC payload with InclFlag…
codey_08
  • 249
  • 1
  • 11