Hi Amit, What you observed is correct. In ESB/EI massage context it only keeps the current context.
If you want to keep multiple content store those in properties and use later using enrich mediator. [1] https://docs.wso2.com/display/EI611/Enrich+Mediator [2] http://mrmalakasilva.blogspot.com/search?q=enrich On Wed, Aug 9, 2017 at 1:12 PM, Amit Rajvanshi <arajvan...@salmon.com> wrote: > Hi Malaka, > > > > I have tried with the below approach but could not get success. > > When I tried with multiple read mediator in mediation flow then last one > is overriding the first data so eventually I have only one file data in > mediation flow. > > And if I use clone mediator then each branch is executing separately . > > *Below is the screenshot of my sequence:* > > > > > > Am I doing it correctly or did you say something else ? > > > > Best regards, > *Amit Rajvanshi* > > *Technical Consultant* > *Office: *+91-120-4737401 <+91%20120%20473%207401> > > *Mobile*: +91 9871001235 <+91%2098710%2001235> > > *Email*: arajvan...@salmon.com > > [image: cid:image003.png@01D2CA89.60AB8730] <https://salmon.com/in-en/> > > > > *[image: cid:image004.jpg@01D2CA89.60AB8730]* > <https://twitter.com/Salmon_India> *[image: > cid:image005.jpg@01D2CA89.60AB8730]* > <https://www.linkedin.com/company/salmon-india> *[image: > cid:image006.jpg@01D2CA89.60AB8730]* > <https://plus.google.com/116105780357981423232> *[image: > cid:image007.jpg@01D2CA89.60AB8730]* > <https://www.facebook.com/SalmonIndiaLtd/> *[image: > cid:image008.jpg@01D2CA89.60AB8730]* <http://www.pinterest.com/salmonltd/> > *[image: cid:image009.jpg@01D2CA89.60AB8730]* > <https://www.youtube.com/user/salmonlimited> *[image: > cid:image010.jpg@01D2CA89.60AB8730]* <http://www.slideshare.net/salmonltd> > > > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > > > > *From:* Malaka Silva [mailto:mal...@wso2.com] > *Sent:* 04 August 2017 19:55 > *To:* Amit Rajvanshi > *Cc:* WSO2 Developers' List; Hariprasath Thanarajah > > *Subject:* Re: Handling multiple files > > > > > > > > On Fri, Aug 4, 2017 at 7:47 PM, Amit Rajvanshi <arajvan...@salmon.com> > wrote: > > Thanks Malaka, > > So do u mean we need to trigger the process by injecting a message through > schedule task and then use file connector to read three files on sftp and > then perform the merge operation? > > Yes > > > > File name contains one fix part of string with combination of datetime. > > In that case you can dynamically generate files path/names and read with > file connector. > > > > > > Regards, > > Amit Rajvanshi > > > > > > -------- Original message -------- > > From: Malaka Silva <mal...@wso2.com> > > Date: 04/08/2017 19:28 (GMT+05:30) > > To: Amit Rajvanshi <arajvan...@salmon.com> > > Cc: WSO2 Developers' List <dev@wso2.org>, Hariprasath Thanarajah < > haripras...@wso2.com> > > Subject: Re: Handling multiple files > > > > Hi Amit, > > > > Do you know the file names that needs to be merged? > > > > You can try to implement the use case with file connector [1] and EI > schedule tasks [2]. > > > > [1] https://store.wso2.com/store/assets/esbconnector/ > details/48bab332-c6a6-4f5a-9b79-17e29c7ad4c6 > > [2] https://docs.wso2.com/display/EI611/Working+with+Scheduled+Tasks > > > > On Fri, Aug 4, 2017 at 2:40 PM, Amit Rajvanshi <arajvan...@salmon.com> > wrote: > > Hi Malaka, > > > > Is it possible to handle a scenario in wos2 ESB where I am receiving three > CSV files from SFTP location and I need to merge them into single file. > > I do not want to create three separate instance for three files because > all the information need to be map into single message and send it to > Vendor. > > > > Any help will be useful. > > > > Best regards, > *Amit Rajvanshi* > > *Technical Consultant* > *Office: *+91-120-4737401 <+91%20120%20473%207401> > > *Mobile*: +91 9871001235 <+91%2098710%2001235> > > *Email*: arajvan...@salmon.com > > [image: cid:image003.png@01D2CA89.60AB8730] <https://salmon.com/in-en/> > > > > *[image: cid:image004.jpg@01D2CA89.60AB8730]* > <https://twitter.com/Salmon_India> *[image: > cid:image005.jpg@01D2CA89.60AB8730]* > <https://www.linkedin.com/company/salmon-india> *[image: > cid:image006.jpg@01D2CA89.60AB8730]* > <https://plus.google.com/116105780357981423232> *[image: > cid:image007.jpg@01D2CA89.60AB8730]* > <https://www.facebook.com/SalmonIndiaLtd/> *[image: > cid:image008.jpg@01D2CA89.60AB8730]* <http://www.pinterest.com/salmonltd/> > *[image: cid:image009.jpg@01D2CA89.60AB8730]* > <https://www.youtube.com/user/salmonlimited> *[image: > cid:image010.jpg@01D2CA89.60AB8730]* <http://www.slideshare.net/salmonltd> > > > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > > > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > > > > > > -- > > > > Best Regards, > > > Malaka Silva > > Associate Director / Architect > M: +94 777 219 791 <077%20721%209791> > > Tel : 94 11 214 5345 > > Fax :94 11 2145300 <011%202%20145300> > > Skype : malaka.sampath.silva > > LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 > > Blog : http://mrmalakasilva.blogspot.com/ > > > > WSO2, Inc. > > lean . enterprise . middleware > https://wso2.com/signature > > http://www.wso2.com/about/team/malaka-silva/ > <http://wso2.com/about/team/malaka-silva/> > > https://store.wso2.com/store/ > > Don't make Trees rare, we should keep them with care > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > > > > > > -- > > > > Best Regards, > > > Malaka Silva > > Associate Director / Architect > M: +94 777 219 791 <077%20721%209791> > > Tel : 94 11 214 5345 > > Fax :94 11 2145300 <011%202%20145300> > > Skype : malaka.sampath.silva > > LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 > > Blog : http://mrmalakasilva.blogspot.com/ > > > > WSO2, Inc. > > lean . enterprise . middleware > https://wso2.com/signature > > http://www.wso2.com/about/team/malaka-silva/ > <http://wso2.com/about/team/malaka-silva/> > > https://store.wso2.com/store/ > > Don't make Trees rare, we should keep them with care > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > -- Best Regards, Malaka Silva Associate Director / Architect M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware https://wso2.com/signature http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> https://store.wso2.com/store/ Don't make Trees rare, we should keep them with care
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev