public interface CaseArchiveManager
Provides methods to archive case and documents
Modifier and Type | Method and Description |
---|---|
void |
archive(Optional<String> processToOmit,
AnyWorkObjectService anyWorkObjectService,
String caseId,
String actionComment)
Archives given case
|
void |
archiveCaseAndDocuments(Optional<String> processToOmit,
String caseId,
String actionComment)
Archives case and all it active documents.
|
boolean |
archiveCmmnCase(String id,
String actionComment)
Tests if the case identified by the
id parameter is a CMMN case. |
void |
archiveSingleCase(Optional<String> processToOmit,
String id,
String actionComment)
Archives the case.
|
void |
archiveSingleWorkObject(String id,
String actionComment)
Archives the work object
|
void archive(Optional<String> processToOmit, AnyWorkObjectService anyWorkObjectService, String caseId, String actionComment)
Archives given case
processToOmit
- process to omit idanyWorkObjectService
- process service which is responsible for process archivationcaseId
- case to archiveactionComment
- comment to add to the actionvoid archiveSingleCase(Optional<String> processToOmit, String id, String actionComment)
Archives the case. The case can not contain any active item
processToOmit
- process to omit idid
- case to archiveactionComment
- comment to add to the actionOneException
- in the case when case has active sub itemsboolean archiveCmmnCase(String id, String actionComment)
Tests if the case identified by the id
parameter is a CMMN case. If so it archives the case which leads (by means of notification of the CmmnCaseProvider) to
the termination of the case. Termination of the case also means that the case engine terminates any pending tasks like human tasks, process tasks and case tasks.
id
- the case ID.actionComment
- the action comment to pass on.true
if the case identified by the id
parameter is indeed a CMMN case (and it was thus archived). Returns false
otherwise.void archiveCaseAndDocuments(Optional<String> processToOmit, String caseId, String actionComment)
Archives case and all it active documents. In the case of any other active work objects exception is thrown
processToOmit
- process to omit idcaseId
- case to archiveactionComment
- comment to add to the action{@linkOneException}
- in the case when case has active non Document sub itemsCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.