File listener using same pyID for all files processed
File listener is not processing xml files correctly. It is same using pyid to create the diffrent work objects. We have multiple xml files in the landing zone and it is supposed to create one unique WO per xml file, but it is creating one WO for the first xml file, and then uses the same WO for all subsequent files.
Not able to create the new work object for each fie.
Steps to Reproduce
Place the files in landing zone
The root cause of this problem is a defect in customer application code/rules.
The Rule-Service-File instance was specifing the primary page to use as pyWorkPage. It was also specifying to keep pages between processing. The primary activity for the Rule-Service-File was using the pyWorkPage and not cleaning it up after it was done running. The combination of service setting and logic in the primary activity were causing this issue.
This issue is resolved through the following local change:
Removed the "keep pages between processing setting" and also updated the primary activity to do a Page-Remove on pyWorkPage after processing was completed.