Skip to main content

I’m trying to read a text file with settings in it then, use the settings in the WS. The settings are formatted on lines like name = value. There are lines with other stuff on them like comments that I just want to ignore. The WS that I have seems to work up to the AttributeSplitter. I think it splits right because it shows 30 features created but it doesn’t fully fill the list{}. I think the list{} should have 60 items but it only has 2. The AttributeCreator just creates one attribute for the list{2}. I’m a bit confused how this should be configured. Also, if there is a better way of doing this (reading settings) then, please let me know. I have attached my WS (zipped) and my txt settings file.

AttributeCreator: only one attribute gets created ‘APP_EXIT’. 

AttributeCreator

 

I’m not sure how you want end product to look like, But if you add List Exploder after AttributeSplitter it will take the list attribute into it’s new feature which results in 69 features. If you can provide what the final output should look like, it will help me understand what you trying to do more.
 

 


@panda Thank you for your reply. If I understand your question, there won’t be any output. I would like to use the values from the file in the WS processing. An example would be how I have used it in the Tester: if APP_EXIT = false then send an email. I would like to be able to use each setting’s value in that same way.


Attached is the alternative solution I created.
I think reading text file as a whole, then use regular expression to get attribute you need out is easier, than try to go through each feature separately.

I hope this is helps!