📅  最后修改于: 2022-03-11 14:55:56.359000             🧑  作者: Mango
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);
}