Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

509

September 9th, 2008 04:00

NL-filter ASL script to read input from a plain file

Hi,

I have a notification-list in SAM that uses a filter script named for instance nl-test-filter.asl. This filter script is required to read a plain file for processing. Here I a cannot use sm_adapter, coz this filter name will just be mentioned in the Notification-list..

1) Isthere any way, to read the plain file within the ASL script ( nl-test-filter.asl)

2) Or, write another ASL script ( nl-test2- filter.asl) that I would mention in the notification list filter criteria, that would pass file1.txt and call nl-test-filter.asl to execute it.

Please help me in this..

36 Posts

September 9th, 2008 05:00

Hi,

What you're trying to do is not really feasible. I'd suggest a different approach.
You can put the data into the Smarts repository using GA_StringDictionary class as key value pairs, and in your filter script access to the data in this class rather than trying to read a text file.
Smarts training material on ASL scripting has some information on how to use GA_StringDictionary in this way. Not sure where else it's documented, if it is.

Hope this helps,
Berkay Mollamustafaoglu
http://www.ifountain.com
Mobile: + 1 703 349 0538
mberkay on yahoo, google and skype

September 10th, 2008 03:00

Thanks a lot.. This really worked
No Events found!

Top