mule-el

Mule won't allow POLL message processor to read file using file Inbound?

核能气质少年 提交于 2019-12-02 10:12:55
I have a small query, POLL message processor not allowing to read Files from 'File Inbound' message processor? I need to read the file for every 5 minutes (Schedule automatically) to proceed with further requirements. Is it possible using POLL? How can be file inbound used in POLL. Any suggestions will be helpful. I recommend you execute this operation using the quartz connector. Here's an example: <flow name="repeatIntervalFileFlow" doc:name="repeatIntervalFileFlow"> <quartz:inbound-endpoint responseTimeout="10000" doc:name="Quartz" jobName="test" repeatInterval="300000"> <quartz:event

Extracting array from JSON in mule esb

自古美人都是妖i 提交于 2019-12-01 11:19:13
I'm using Mule 3.4 CE and I have a JSON data coming through HTTP in the following format: { "People" : [ { "Details" : { "Name" : "John Smith", "Email" : "abc@mail.com" } }, { "Details" : { "Name" : "Tim Smith", "Email" : "def@mail.com" } }, { "Details" : { "Name" : "Ken Smith", "Email" : "ghi@mail.com" } }, } I need to extract the emails and lookup the Salesforce contact with these emails and at the same time I want to retain the JSON payload. So my question is how do I extract the emails through MEL? (for e.g. something like "People/Details/*/Email" - I know this is not a valid, but I'm

Extracting array from JSON in mule esb

蹲街弑〆低调 提交于 2019-12-01 08:30:41
问题 I'm using Mule 3.4 CE and I have a JSON data coming through HTTP in the following format: { "People" : [ { "Details" : { "Name" : "John Smith", "Email" : "abc@mail.com" } }, { "Details" : { "Name" : "Tim Smith", "Email" : "def@mail.com" } }, { "Details" : { "Name" : "Ken Smith", "Email" : "ghi@mail.com" } }, } I need to extract the emails and lookup the Salesforce contact with these emails and at the same time I want to retain the JSON payload. So my question is how do I extract the emails

How to ignore empty objects in DataWeave Mule esb

て烟熏妆下的殇ゞ 提交于 2019-11-30 14:09:44
问题 I am working on transforming my payload. I have got the situation here. Input payload looks like this below one:- { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { "city": null, "state": null } }} I used %output application/json skipNullOn = "everywhere" it returns me JSON like below { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { } }} But I don't want to have empty location object if all fields in

How to ignore empty objects in DataWeave Mule esb

守給你的承諾、 提交于 2019-11-30 09:29:49
I am working on transforming my payload. I have got the situation here. Input payload looks like this below one:- { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { "city": null, "state": null } }} I used %output application/json skipNullOn = "everywhere" it returns me JSON like below { "address": { "city": "bab", "company_name": "asdast", "country_code": "sam", "location": { } }} But I don't want to have empty location object if all fields in location objects are empty.I am expecting something like this { "address": { "city": "bab", "company_name":

Mule if flowVar used in Dataweave Transformer payload converted to Map

橙三吉。 提交于 2019-11-29 17:58:18
I have an issue with a Mule Dataweave Transformer getting an error, this only occurs if :- An enricher is present wrapping a json:json-to-object-transformer <enricher target="#[flowVars.myVar]" doc:name="Message Enricher"> <json:json-to-object-transformer returnClass="java.util.HashMap" doc:name="JSON to Object"/> </enricher> A flowVar is involved in the Dataweave Transformer The exception occurs on the 2nd dataweave :- ERROR 2017-08-15 09:09:52,239 [amqpReceiver.02] org.mule.exception.RollbackMessagingExceptionStrategy: *************************************************************************

Mule if flowVar used in Dataweave Transformer payload converted to Map

二次信任 提交于 2019-11-28 12:07:09
问题 I have an issue with a Mule Dataweave Transformer getting an error, this only occurs if :- An enricher is present wrapping a json:json-to-object-transformer <enricher target="#[flowVars.myVar]" doc:name="Message Enricher"> <json:json-to-object-transformer returnClass="java.util.HashMap" doc:name="JSON to Object"/> </enricher> A flowVar is involved in the Dataweave Transformer The exception occurs on the 2nd dataweave :- ERROR 2017-08-15 09:09:52,239 [amqpReceiver.02] org.mule.exception

Mule: How to pass File from FTP to Java class in Mule ESB?

元气小坏坏 提交于 2019-11-28 06:44:15
问题 In Mule, I am downloading files from FTP server. I want to pass all the files in this directory to my java class which should be performing actions after Download_ZIP_File in my flow. I need to perform actions like reading text files and unzip the zipped files using Java. There should be a Java class in my flow, for which a function call should be raised when download is complete.. Object of this class must know all the information about downloaded files. Can someone please help on this.?