https://www.nuxeo.com/blog/qa-friday-add-extra-files-document-content-automation/
这是设置几个 blob 来记录的文档。我不确定,但您可以尝试在链调用上设置 Blob,如下例所示。
HttpAutomationClient client = new HttpAutomationClient("http://localhost:8080/nuxeo/site/automation");
Session session = client.getSession("Administrator", "Administrator");
File dummyFile = new File("/tmp/dummy");
session.newRequest("Blob.AttachOnDocument")
.set("document", "/path/to/my/doc")
.set("xpath", "files:files")
.setInput(new Blobs(Arrays.asList(
new FileBlob(dummyFile),
new FileBlob(dummyFile),
new FileBlob(dummyFile)
))).execute();