public interface CaseArchiveManager
Modifier and Type | Method and Description |
---|---|
void |
archive(com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> processToOmit,
com.edorasware.gear.core.process.ProcessService processService,
com.edorasware.commons.core.entity.GlobalId caseId,
String actionComment)
Archives given case
|
void |
archiveCaseAndDocuments(com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> processToOmit,
com.edorasware.commons.core.entity.GlobalId caseId,
String actionComment)
Archives case and all it active documents.
|
boolean |
archiveCmmnCase(com.edorasware.commons.core.entity.GlobalId id,
String actionComment)
Tests if the case identified by the
id parameter is a CMMN case. |
void |
archiveSingleCase(com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> processToOmit,
com.edorasware.commons.core.entity.GlobalId id,
String actionComment)
Archives the case.
|
void |
archiveSingleWorkObject(com.edorasware.commons.core.entity.GlobalId id,
String actionComment)
Archives the work object
|
void archive(com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> processToOmit, com.edorasware.gear.core.process.ProcessService processService, com.edorasware.commons.core.entity.GlobalId caseId, String actionComment)
processToOmit
- process to omit idprocessService
- process service which is responsible for process archivationcaseId
- case to archiveactionComment
- comment to add to the actionvoid archiveSingleCase(com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> processToOmit, com.edorasware.commons.core.entity.GlobalId id, String actionComment)
processToOmit
- process to omit idid
- case to archiveactionComment
- comment to add to the actioncom.edorasware.one.util.OneException
- in the case when case has active sub itemsboolean archiveCmmnCase(com.edorasware.commons.core.entity.GlobalId id, String actionComment)
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(com.google.common.base.Optional<com.edorasware.commons.core.entity.GlobalId> processToOmit, com.edorasware.commons.core.entity.GlobalId caseId, String actionComment)
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 itemsvoid archiveSingleWorkObject(com.edorasware.commons.core.entity.GlobalId id, String actionComment)
id
- work object to archiveactionComment
- comment to add to the actionCopyright © 2010 - 2017 edorasware ag. All Rights Reserved.