public class LifecyclePolicyActionOutcome extends Object
Modifier and Type | Field and Description |
---|---|
static LifecyclePolicyActionOutcome |
EXECUTION_SKIPPED
An outcome, indicating that the operation was not executed, and that
the document should not be updated to reflect the new lifecycle state.
|
static LifecyclePolicyActionOutcome |
NO_UPDATE_NEEDED
An outcome, indicating that the operation was executed, but that
there is no need to update the document to reflect the new lifecycle
state, typically because the action knows that it has freed the document.
|
static LifecyclePolicyActionOutcome |
STANDARD_OUTCOME
Standard outcome, indicating a sucecssful execution and that
the document should be updated normally.
|
Constructor and Description |
---|
LifecyclePolicyActionOutcome()
Constructs an instance that specifies the default outcome.
|
LifecyclePolicyActionOutcome(boolean executed,
boolean updateState)
Constructs an instance that specifies whether the operation was
executed, and whether the document should be updated normally.
|
LifecyclePolicyActionOutcome(boolean executed,
boolean updateState,
Date nextDate,
LifecyclePolicyEntry nextEntry)
Constructs an instance that specifies whether the operation was
executed, and whether the document should be updated and how.
|
Modifier and Type | Method and Description |
---|---|
Date |
getNextLifecycleDate()
Returns the new Lifecycle to appy to the document.
|
LifecyclePolicyEntry |
getNextLifecyclePolicyEntry()
Returns the new LifecyclePolicyEntry to appy to the document.
|
boolean |
isUpdateIndicated()
Returns true if an update of document state
should be performed.
|
boolean |
wasExecutionPerformed()
Returns true if the execution was performed.
|
public static final LifecyclePolicyActionOutcome STANDARD_OUTCOME
public static final LifecyclePolicyActionOutcome EXECUTION_SKIPPED
public static final LifecyclePolicyActionOutcome NO_UPDATE_NEEDED
public LifecyclePolicyActionOutcome()
This reflects that the operation was performed normally, and that the document should be updated to reflect the new state, using the current time/date as the new LifecycleDate.
public LifecyclePolicyActionOutcome(boolean executed, boolean updateState)
If updated, the document should be updated to reflect the new state, using the current time/date as the new LifecycleDate.
executed
- whether the operation was executedupdateState
- whether the document should have its state updatedpublic LifecyclePolicyActionOutcome(boolean executed, boolean updateState, Date nextDate, LifecyclePolicyEntry nextEntry)
If executed or updateState is specified as true, the caller will complete the transaction context. If a non-null LifecyclePolicyEntry is specified, it must be part of the same LifecyclePolicy as the entry being processed. If the date specified is null, the current time/date will be used as the new LifecycleDate.
executed
- whether the operation was executedupdateState
- whether the document should have its state updatednextDate
- the next Lifecycle datenextEntry
- the next Lifecycle entrypublic boolean wasExecutionPerformed()
public boolean isUpdateIndicated()
public LifecyclePolicyEntry getNextLifecyclePolicyEntry()
A null value implies that the LifecyclePolicyEntry being processed should be used.
public Date getNextLifecycleDate()
A null value implies that the current date/time should be used.
Copyright © 2023. All rights reserved.