mule-studio

Mule - split a big JSON list into multiple smaller JSON lists

六月ゝ 毕业季﹏ 提交于 2019-12-04 19:05:53
I have a list of json objects containing about 200 objects. I want to split that list into smaller lists where each list contains max 20 objects each. I would like to POST each sublist to HTTP based endpoint. <flow name="send-to-next-step" doc:name="send-to-vm-flow"> <vm:inbound-endpoint exchange-pattern="one-way" path="send-to-next-step-vm" doc:name="VM" /> <!-- received the JSON List payload with 200 objects--> <!-- TODO do processing here to split the list into sub-lists and call sub-flow for each sub-list <flow-ref name="send-to-aggregator-sf" doc:name="Flow Reference" /> </flow> One

Mule Studio - pass set variable to Java Transformer

本小妞迷上赌 提交于 2019-12-04 15:47:54
I've got a flow in mule, and part of it requires two "payload" objects to be passed - one payload is Customer, and the other is Store. The current payload of the flow is set to the Store, and that works correctly being passed into my Java transformer class. I've used Variable (set variable name to Customer) to save my customer payload and am using the property field of my Java Transformer to try and pass that through. Currently it is passing it through to my Java class as a string - rather than the variable it's supposed to be referencing. I've filled out the property field in the transformer

How to use mule requester for SFTP - Dynamic file name and path

拜拜、爱过 提交于 2019-12-04 15:32:24
I am trying to use a mule requester component for SFTP. How do I give the file name as part of the request argument? This is my flow: <flow name="Move_Doc_To_Temp_Location" doc:name="Move_Doc_To_Temp_Location"> <jdbc-ee:inbound-endpoint queryKey="Select_Document" queryTimeout="-1" pollingFrequency="30000" connector-ref="LoanApp_Database" doc:name="Select_Doc_To_be_moved"/> <set-variable variableName="OriginalPayload" value="#[payload]" doc:name="OriginalPayload"/> <logger message="#[payload['DocID']] - #[payload['Location']]" level="INFO" category="Document to be moved" doc:name="Logger"/> <!-

Spring3 Dependency Injection not working with mule

倾然丶 夕夏残阳落幕 提交于 2019-12-04 14:53:12
I am unable to inject customerDao object in reference variable inside CustomerServiceImpl service class. Here is my mule_flow.mflow file <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/http http:/

Mule - Pass Parameters to datamapper and access them in xpath conditions

随声附和 提交于 2019-12-04 06:55:31
问题 How to pass parameters to datamapper in mule and access them. (In XSLT, I pass them as context parameters, receive them in param and access using $ symbol). I need to do the same thing in datamapper. Any suggestions/links/example are appreciated. Approach1: We are using invokeTransformer method in datamapper output.abc= invokeTransformer("MyTransformer",input.abcdef); This MyTransformer is a java component which has this default method overridden. @Override public String transformMessage

Consume a web service method with multiple args in Mule esb

邮差的信 提交于 2019-12-04 06:22:02
问题 Hello what I want to apply seems very simple but I don't know how, need some clarifications. here is the scenario: I want to call a web service method, this method name is find() and accept as argument an object, the object represent a composed primary key, composed by two strings an id and a type. the object -which is the primary key- representation in soap is : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsd="http://wsdouane/"> <soapenv:Header/>

How to read huge CSV file in Mule

不打扰是莪最后的温柔 提交于 2019-12-03 21:10:02
问题 I'am using Mule Studio 3.4.0 Community Edition. I have a big problem about how to parse a large CSV file incoming with File Endpoint. The scenario is that I have 3 CSV files and I would putting the files'content into a database. But when I try to load a huge file (about 144MB) I get the "OutOfMemory" Exception. I thought as solution to divide/split my the large CSV into smaller size CSVs (I don't know if this solution is the best) o try to find a way to process CSV without throwing an

Delete MULE_SESSION header from outbound HTTP call

感情迁移 提交于 2019-12-03 13:48:54
问题 I want to delete mule specific headers from outgoing HTTP request. I have placed the following transfomer within the HTTP call. <message-properties-transformer doc:name="Message Properties"> <add-message-property key="Authorization" value="ffffffffff" /> <add-message-property key="Content-Type" value="application/json" /> <add-message-property key="Accept" value="application/json" /> <delete-message-property key="MULE_ENCODING" /> <delete-message-property key="MULE_SESSION" /> <delete-message

Delete MULE_SESSION header from outbound HTTP call

时间秒杀一切 提交于 2019-12-03 03:37:46
I want to delete mule specific headers from outgoing HTTP request. I have placed the following transfomer within the HTTP call. <message-properties-transformer doc:name="Message Properties"> <add-message-property key="Authorization" value="ffffffffff" /> <add-message-property key="Content-Type" value="application/json" /> <add-message-property key="Accept" value="application/json" /> <delete-message-property key="MULE_ENCODING" /> <delete-message-property key="MULE_SESSION" /> <delete-message-property key="MULE_ENDPOINT" /> </message-properties-transformer> However, the following properties

How to extract values from an xml list in Mule foreach

主宰稳场 提交于 2019-12-02 16:09:58
问题 I have a following SOAP response :- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <retrieveAllDataResponse xmlns="http://services.test.com/schema/MainData/V1"> <retrieveAllData> <Response>The Data retrieved from the Database</Response> <Id>1231</Id> <Name>test1</Name> <Age>560</Age> <Designation>Software Engineer</Designation> </retrieveAllData> <retrieveAllData> <Response>The Data retrieved from the Database</Response> <Id>165</Id> <Name>test2</Name> <Age