public class FreeLifecyclePolicyAction extends LifecyclePolicyActionAdapter
EVENT_BASED_PROPERTY, TIME_BASED_PROPERTY
Constructor and Description |
---|
FreeLifecyclePolicyAction()
Constructs a FreeLifecyclePolicyAction.
|
Modifier and Type | Method and Description |
---|---|
LifecyclePolicyActionOutcome |
execute(LifecyclePolicyEntry lpe,
Document doc)
Execute the action for the specified document.
|
getSearchCondition, initialize, notify
public FreeLifecyclePolicyAction()
public LifecyclePolicyActionOutcome execute(LifecyclePolicyEntry lpe, Document doc) throws IfsException
LifecyclePolicyActionAdapter
The caller establishes a transaction context for the execution of this action. If the LifecyclePolicyActionOutcome indicates that the execution was successful, the transaction will be committed by the caller. Additionally, the LifecyclePolicyActionOutcome may indicate the nature of the updates performed on the document to indicate the new lifecycle state (if any) for the document. The standard behavior is to perform the following updates:
This implementation can decide not to execute the action based on custom logic, and indicates this by returning an appropriately constructed LifecyclePolicyActionOutcome. The caller will then abort the current transaction context. Similarly, if an exception is thrown, the caller will also abort the transaction, and log the exception information.
execute
in interface LifecyclePolicyAction
execute
in class LifecyclePolicyActionAdapter
lpe
- the entry that references the
LifecyclePolicyActionSpecification that indicates
this implementation of LifecyclePolicyActiondoc
- the Document to processIfsException
- if the operation failsCopyright © 2023. All rights reserved.