mule

How to loop and combine as one in Mule Dataweave

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-16 17:57:08
问题 I have request of json and expected response one as mentioned below. It need to groupBy clientItemCode and i'm halfway somewhere stuck to loop around in same. Used both MapObject and reduce combination of function. Any help will be appreciated. [ { "ClientCode": "1", "ClientItemCode": "245", "LocationId": "CLOSED" }, { "ClientCode": "1", "ClientItemCode": "245", "LocationId": "OPEN" }, { "ClientCode": "2", "ClientItemCode": "245", "LocationId": "CHECKOUT" }, { "ClientCode": "2",

How to remove empty array objects from dataweave response

为君一笑 提交于 2020-06-13 11:24:31
问题 I have a use case to remove empty json objects from dataweave response. The dw response after transformation will be like { "remuneration": { "allowance": [ { } ] }, "identifiers": { "employeeId": "1", "id": "E001", "payrollId": "901", "username": "sample" }, "employment": { } } I want the empty objects to be removed from the output. Expected output: { "identifiers": { "employeeId": "1", "id": "E001", "payrollId": "901", "username": "sample" } } DWL script %dw 1.0 %output application/json

Mule batch processing vs foreach vs splitter-aggregator

青春壹個敷衍的年華 提交于 2020-05-13 17:57:30
问题 In Mule, I have quite many records to process, where processing includes some calculations, going back and forth to database etc.. We can process collections of records with these options Batch processing ForEach Splitter-Aggregator So what are the main differences between them? When should we prefer one to others? Mule batch processing option does not seem to have batch job scope variable definition, for example. Or, what if I want to benefit multithreading to fasten the overall task? Or,

Mule batch processing vs foreach vs splitter-aggregator

房东的猫 提交于 2020-05-13 17:54:25
问题 In Mule, I have quite many records to process, where processing includes some calculations, going back and forth to database etc.. We can process collections of records with these options Batch processing ForEach Splitter-Aggregator So what are the main differences between them? When should we prefer one to others? Mule batch processing option does not seem to have batch job scope variable definition, for example. Or, what if I want to benefit multithreading to fasten the overall task? Or,

GET call works for POSTMAN/SOAPUI but not at mule 4.1.3

最后都变了- 提交于 2020-03-25 19:39:38
问题 Im getting connection timeout error in Mule(anypoint studion), when invoking a request. I have added dummy url(for testing purpose) in an http request flow. That dummy url is working fine with postman and soaupui. But not from Mule. I get, Message : HTTP GET on resource 'http://xxx:3080/hr/INT053' failed: Connection timed out: no further information. Error type : HTTP:CONNECTIVITY if i invoke http://xxx:3080/hr/INT053 directly from postman/soapui it works. What might be the cause? I have

GET call works for POSTMAN/SOAPUI but not at mule 4.1.3

泄露秘密 提交于 2020-03-25 19:39:29
问题 Im getting connection timeout error in Mule(anypoint studion), when invoking a request. I have added dummy url(for testing purpose) in an http request flow. That dummy url is working fine with postman and soaupui. But not from Mule. I get, Message : HTTP GET on resource 'http://xxx:3080/hr/INT053' failed: Connection timed out: no further information. Error type : HTTP:CONNECTIVITY if i invoke http://xxx:3080/hr/INT053 directly from postman/soapui it works. What might be the cause? I have

Using Quartz with Mule in Clustered Environment

蹲街弑〆低调 提交于 2020-03-21 02:40:24
问题 I have a scenario where , I am trying to read data from Yelp API and want to put it into a ActiveMQ queue after certain intervals, So I am using quartz scheduler for the same.My quartz scheduler runs after every 10 minutes and pushes the data to queue, All is fine till here, Now I want this to work in a clustered environment, where I will have 2 instances deployed and listening to same Yelp Endpoint , Now what is happening is, my quartz scheduler from 2 instances are executing at same

Using Quartz with Mule in Clustered Environment

戏子无情 提交于 2020-03-21 02:40:13
问题 I have a scenario where , I am trying to read data from Yelp API and want to put it into a ActiveMQ queue after certain intervals, So I am using quartz scheduler for the same.My quartz scheduler runs after every 10 minutes and pushes the data to queue, All is fine till here, Now I want this to work in a clustered environment, where I will have 2 instances deployed and listening to same Yelp Endpoint , Now what is happening is, my quartz scheduler from 2 instances are executing at same

Non-resolvable parent POM

落爺英雄遲暮 提交于 2020-03-18 05:09:10
问题 I am trying to develop a custom connector for mule by following http://www.mulesoft.org/documentation/display/current/Creating+a+Connector+Project tutorial. As shown in the tutorial, I am creating the project through command line by executing mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit -DarchetypeArtifactId=mule-devkit-archetype-cloud-connector -DarchetypeVersion=3.4.3 -DgroupId=org.hello -DartifactId=hello-connector -Dversion=1.0-SNAPSHOT -DmuleConnectorName=Hello

Non-resolvable parent POM

元气小坏坏 提交于 2020-03-18 05:08:30
问题 I am trying to develop a custom connector for mule by following http://www.mulesoft.org/documentation/display/current/Creating+a+Connector+Project tutorial. As shown in the tutorial, I am creating the project through command line by executing mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit -DarchetypeArtifactId=mule-devkit-archetype-cloud-connector -DarchetypeVersion=3.4.3 -DgroupId=org.hello -DartifactId=hello-connector -Dversion=1.0-SNAPSHOT -DmuleConnectorName=Hello