• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

uploading files to FileNet with Groovy

 
Ajit Sethi
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
chris webster
Bartender
Pie
Posts: 2359
31
Linux Oracle Postgres Database Python Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Finally, you want to be able to retrieve the document using its ID via the API - this should be one of the standard use cases for the APIs, so have a look in the docs for that. Here's a link to IBM docs on FileNet APIs: http://www.redbooks.ibm.com/redbooks/SG247743/wwhelp/wwhimpl/js/html/wwhelp.htm

And this link is supposed to be for a FileNet Java API demo application: http://www-01.ibm.com/support/docview.wss?uid=swg24028788

Right, over to the Grownups now. Good luck!
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic