logger.debug("Application starting");
Utility.initLogging("");
//Create a MAP
Map map = new Map();
//Create an INBOOUND Interface
InboundInterface inint = new InboundInterface(map);
//Define input path
inint.setInputPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"input");
inint.setBackupPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"backup");
inint.setOutputPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"output");
inint.setXSLTFilename(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"xslt"+File.separator+"CSVtoExcel.xsl");
//Define input file mask
inint.setInputFileMask("csv");
//Define INBOUND Connector as CSV
inint.setType(IntefaceConnector.Connector_CSV);
//Set Folder Polling Frequency to 1000 milliseconds
inint.setPollingInterval((long) 1000);
//Assign INBOUND interface to Map
map.setInboundInterface(inint);
//Enable MAP and associated Interfaces
OutboundInterface outint = new OutboundInterface(map);
outint.setType(IntefaceConnector.Connector_XML);
outint.setOutputPath(System.getProperty("user.dir")+File.separator+"interface"+File.separator+"output");
map.addOutboundInterface(outint);
map.setEnabled(true);
//Let the MAP run for 10 seconds
Utility.pause(10);
//Disable the Map and associated Interfaces
map.setEnabled(false);
}