Answers for "bonitasoft find and remove document"

1

bonitasoft find and remove document

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<ArchivedDocument> results = apiAccessor.getProcessAPI().searchArchivedDocuments(builder.done());

for (ArchivedDocument doc : results.getResult()){
    processApi.deleteContentOfArchivedDocument(doc.id);
}
Posted by: Guest on May-29-2021

Code answers related to "bonitasoft find and remove document"

Browse Popular Code Answers by Language