Discussion
Wipro Technologies
IN
Last activity: 28 Sep 2015 11:08 EDT
Skil File Reading Based On File Name but multiple names allowed
Hi All,
We have a requirement wherein a file listener should skip the entire reading of a file if the file name is not as per business logic.
Example: There are three file A.txt, B.txt and C.txt ; in this case File listener should be allowed to read only A and B and not C.
How can this be implemented with minimal changes? Any thought on how can SourceNameMask option in File Listener be used for this?
Thanks.
Hitesh
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
can we attempt to match the fileName using 'pxContainsViaRegex' or string name contains like and skip the file processing?
Wipro Technologies
IN
Hi sahup1,
Where are you suggesting to implement your approach; out of the below options:
1)Inside file listener instance
2)Service file rule
3)Activities called in the service file rule
I want to avoid reading all the records and skip the processing itself at initial stages.
Can you please throw some light here?
Thanks.
Hitesh
Pegasystems Inc.
IN
in 3) Activities called in the service file rule. which would skip read logic based on the when trueness of 'pxContainsViaRegex'
or have a different source location defined on individual file listeners which is a not a nice option ...
Please share your thoughts, Thank you!
Wipro Technologies
IN
Hi,
My main objective here is to skip the file read at initial stage itself instead of doing record by record read and then exiting the activity at first step based on some condition or logic.
If I place the check in Service File Activities, system will still read the records one by one.
Is there any way we can stop the file processing at initial stages itself? Can we give multiple formats (in my case it is 2) in the Source Name Mask field (not *.* which picks file of all types) to restrict the files that should be picked?If Yes, then which special character should be used to separate the list?
I have seen we can give something like AB*.*;PQ*.* in Google (file types separated by ;) but the same type of setting doesnt works in the File Listener Rule.
Thanks.
Hitesh
Pegasystems Inc.
IN
sorry Hitesh... no idea...
Aaseya IT Services Pvt Ltd
SA
Hi Hitesh,
Did you got any solution on this?
Thanks
Kamalesh
Wipro Technologies
IN
Final Solution - We added a separate file listener and provided the source name mask value accordingly.
Tried providing file names separated by ; but it didnt work:( so had to go for the above approach only.
Thanks.
Hitesh