I have multiple files under \iguana_training folder like “designation”,”nationality”,”race”,”religion”
This is my piece of code
local Dir = [[C:\Program Files\iNTERFACEWARE\Iguana\iguana_training\]]
for FileDir, FileInfo in os.fs.glob(Dir..’*.csv’) do –look for the files under the specified —
FileName=FileDir:sub(55) –extract the file name alone
if FileName:sub(1,11)==’Designation’ then –check for designation file
local CsvMsg = csv.parseCsv(Data) –parse the csv file and map to a dummy —
local Result = mapdata(XMLTemplate,CsvMsg)
URL=’https://localhost:6544/response ‘ –post the response to a webservice
local response, status, headers =
body = Result ,
1. I can see the annotations working as expected(capture.jpg) ie it looked for the designation file and done the mapping and if condition failed for other files
2.When i run this channel, all the files are read when i checked the iguana logs(capture2.jpg).
3. the csv file is not parsed and no mapping was done. Just a log that message successfully processed by translator
So i am not sure which part i am missing.