document Script

update document via groovy script

Hi, I have a given path to a document, and I need to update a document variable in the process with that document (the document path depends on every case). Also I need to place that document in another path when the process finishes. I need to do this in groovy scripts. and I have no idea how to up/download documents in bonita scripts

Best reagards