public class DefaultCaseArchiveManager extends Object implements CaseArchiveManager
This class provides default implementation of case archive manager
| Constructor and Description |
|---|
DefaultCaseArchiveManager(AnyWorkObjectService anyWorkObjectService,
NotificationService notificationService,
WorkObjectService workObjectService) |
| 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 caseId,
String actionComment)
Tests if the case identified by the
id parameter is a CMMN case. |
void |
archiveSingleCase(Optional<String> processToOmit,
String caseId,
String actionComment)
Archives the case.
|
void |
archiveSingleWorkObject(String id,
String actionComment)
Archives the work object
|
public DefaultCaseArchiveManager(AnyWorkObjectService anyWorkObjectService, NotificationService notificationService, WorkObjectService workObjectService)
public void archive(Optional<String> processToOmit, AnyWorkObjectService anyWorkObjectService, String caseId, String actionComment)
CaseArchiveManagerArchives given case
archive in interface CaseArchiveManagerprocessToOmit - process to omit idanyWorkObjectService - process service which is responsible for process archivationcaseId - case to archiveactionComment - comment to add to the actionpublic void archiveSingleCase(Optional<String> processToOmit, String caseId, String actionComment)
CaseArchiveManagerArchives the case. The case can not contain any active item
archiveSingleCase in interface CaseArchiveManagerprocessToOmit - process to omit idcaseId - case to archiveactionComment - comment to add to the actionpublic boolean archiveCmmnCase(String caseId, String actionComment)
CaseArchiveManagerTests 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.
archiveCmmnCase in interface CaseArchiveManagercaseId - 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.public void archiveCaseAndDocuments(Optional<String> processToOmit, String caseId, String actionComment)
CaseArchiveManagerArchives case and all it active documents. In the case of any other active work objects exception is thrown
archiveCaseAndDocuments in interface CaseArchiveManagerprocessToOmit - process to omit idcaseId - case to archiveactionComment - comment to add to the actionpublic void archiveSingleWorkObject(String id, String actionComment)
CaseArchiveManagerArchives the work object
archiveSingleWorkObject in interface CaseArchiveManagerid - work object to archiveactionComment - comment to add to the actionCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.