You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How can I test the see if a file exists in the Inbox?

I am trying to test the existence of a file using the following code from a groovy blog:
File revFile = new File("test.csv")
println revFile.exists()
This file exists in the inbox/outbox.

When I validate the rule I receive the following message:
Error:The Groovy script failed to compile with internal error: Compile Error:
Expression [ConstructorCallExpression] is not allowed: new java.io.File(test.csv) Rule FPA.RPT.zFile_Exists
I assume this means I cannot create a file object. Since this is not an option does anyone have a method to verify the existence of a file in the inbox/outbox before running a process to load the file?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!