I have a .csv file as input into my process that is manipulated. Once the manipulations are complete I need to write the xml that I have produced out to a new .csv file. Does anyone have any ideas on how to accomplish this feat?
Tags:
With Neuron 3.x, you should be able to use LINQ to XML to generate CVS output inside of a code step. Here's a blog post that shows an example: http://rasikjain.com/convert-xml-to-csv-using-linq-to-xml/
Is there a way inside the code step to reference on of my Environment Variables?
Yes. In v3, we exposed the environment variables to the context object that is passed into the code step. You can read your environment variables using the context.EnvironmentVariables dictionary.
Can you give me an example of pulling out the environment variable for the environment I'm currently running in?
var value = context.EnvironmentVariables["SomeVariable"];
How do I tell it to pull for Development if I'm running Development instead of Production?
It pulls from whatever the active deployment group is. If you're running Development, it will populate the EnvironmentVariables dictionary with the Development group's values.
Michael,
Thanks for the help. Appreciate it and everything seems to working as shown.
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by