Package oracle.iam.platform.kernel.vo
Class EventResult
java.lang.Object
oracle.iam.platform.kernel.vo.EventResult
- All Implemented Interfaces:
Serializable
,HandlerResult
- Direct Known Subclasses:
BulkEventResult
Value object used for returning the result of an event handler.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWarning
(String warningCode) Add a warning codeList of orchestrations that will be executed after the completion of current orchestrationGet the reason in case of failureList of orchestrations that will be executed after the current event handlerRetrieve the warning codesboolean
isVeto()
Returns whether the current orchestration is set to veto or not.void
setDeferredChanges
(List<Orchestration> deferredChanges) Set the list of new orchestrations that need to be executed at the end of current orchestration.void
setFailureReason
(Throwable failureReason) Set the reason in case of failurevoid
setImmediateChanges
(List<Orchestration> immediateChanges) Sets the list of new orchestrations that need to be executed after the execution of current event handler.void
setImmediateChanges
(List<Orchestration> immediateChanges, boolean processInSequence) void
setProcessingWait
(boolean wait) void
setVeto
(boolean veto) If veto is set to true, orchestartion process is moved to Veto status.boolean
boolean
-
Constructor Details
-
EventResult
public EventResult()
-
-
Method Details
-
getFailureReason
Get the reason in case of failure- Returns:
-
setFailureReason
Set the reason in case of failure- Parameters:
result
-
-
setVeto
public void setVeto(boolean veto) If veto is set to true, orchestartion process is moved to Veto status. Veto can only be set in pre-process event handlers.- Parameters:
veto
-
-
isVeto
public boolean isVeto()Returns whether the current orchestration is set to veto or not.- Returns:
-
setImmediateChanges
Sets the list of new orchestrations that need to be executed after the execution of current event handler.- Parameters:
immediateChanges
- new orchestrations which need to be executed. These orchestrations are executed right after the completion of current event handler.
-
setImmediateChanges
-
getImmediateChanges
List of orchestrations that will be executed after the current event handler- Returns:
- List of orchestrations that will be executed after the current event handler
-
shouldProcessImmediateInSequence
public boolean shouldProcessImmediateInSequence() -
setDeferredChanges
Set the list of new orchestrations that need to be executed at the end of current orchestration.- Parameters:
deferredChanges
- new orchestrations which need to be executed. These orchestrations are executed only after current orchestration is completed.
-
getDeferredChanges
List of orchestrations that will be executed after the completion of current orchestration- Returns:
- List of orchestrations that will be executed after the completion of current orchestration
-
addWarning
Add a warning code- Parameters:
warningCode
- warning code to be added
-
getWarnings
Retrieve the warning codes- Returns:
- list of warning codes
-
shouldProcessingWait
public boolean shouldProcessingWait()- Specified by:
shouldProcessingWait
in interfaceHandlerResult
-
setProcessingWait
public void setProcessingWait(boolean wait)
-