📜  bonitasoft 查找和删除文档 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:56.359000             🧑  作者: Mango

代码示例1
ProcessAPI processApi = apiAccessor.getProcessAPI();
SearchOptionsBuilder builder = new SearchOptionsBuilder(0,100);
builder.filter(ArchivedDocumentsSearchDescriptor.PROCESSINSTANCE_ID, processInstanceId).and().
filter(ArchivedDocumentsSearchDescriptor.DOCUMENT_NAME, "your_document_name");

SearchResult results = apiAccessor.getProcessAPI().searchArchivedDocuments(builder.done());

for (ArchivedDocument doc : results.getResult()){
    processApi.deleteContentOfArchivedDocument(doc.id);
}