i have to make a POC using Groovy to upload a pdf file to FileNet and then retrieving that document using the FileNetId generated by FileNet, any one having any experience in this? any ideas will be helpful
Warning: I know nothing about FileNet, and not a lot about Groovy, but just until the Real Experts show up, here's a few thoughts!
You should probably approach the problem as if it were any other "upload a file to a server and read a file" requirement, model the individual processes/components appropriately and then refine the specific implementations you need here.
So you will need to break the task down into separate elements e.g. you need to have a process for selecting a file (a PDF in your case but it doesn't really matter), uploading that to some kind of server and holding onto the file ID when it's been saved. This is the stuff you presumably want to do with Groovy, so look around for examples of how to do this generally with Groovy i.e. without worrying too much about the FileNet side of things.
Assuming you're talking about IBM FileNet, a quick Google search suggests there are various APIs available, so you also need to look at how to talk to the FileNet server specifically. This will be via a Java API, but of course that's pretty transparent for Groovy anyway. And you presumably need to know something about how/where FileNet will store the file and how it will tell you the file ID.
Yea, this is going to be a lot more about FileNet than Groovy. Looking at this generically, if someone asked me to be able to upload / download content via an API using Groovy, the first thing I would do is go here.