import org.apache.chemistry.opencmis.commons.* import org.apache.chemistry.opencmis.commons.data.* import org.apache.chemistry.opencmis.commons.enums.* import org.apache.chemistry.opencmis.client.api.* import org.apache.chemistry.opencmis.client.util.* Document file = (Document) session.GetObject("workspace://SpaceStore/abcde1234-5678-hijk-..."); def cmis = new scripts.CMIS(session) cmis.download(file, "c:\\test\\DOKTEST.docx")