public class EventResult extends java.lang.Object implements java.io.Serializable, HandlerResult
Constructor and Description |
---|
EventResult() |
Modifier and Type | Method and Description |
---|---|
void |
addWarning(java.lang.String warningCode)
Add a warning code
|
java.util.List |
getDeferredChanges()
List of orchestrations that will be executed after the completion of current orchestration
|
java.lang.Throwable |
getFailureReason()
Get the reason in case of failure
|
java.util.List |
getImmediateChanges()
List of orchestrations that will be executed after the current event handler
|
java.util.List |
getWarnings()
Retrieve the warning codes
|
boolean |
isVeto()
Returns whether the current orchestration is set to veto or not.
|
void |
setDeferredChanges(java.util.List deferredChanges)
Set the list of new orchestrations that need to be executed at the end of current orchestration.
|
void |
setFailureReason(java.lang.Throwable failureReason)
Set the reason in case of failure
|
void |
setImmediateChanges(java.util.List immediateChanges)
Sets the list of new orchestrations that need to be executed after the execution of current event handler.
|
void |
setImmediateChanges(java.util.List 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 |
shouldProcessImmediateInSequence() |
boolean |
shouldProcessingWait() |
public java.lang.Throwable getFailureReason()
public void setFailureReason(java.lang.Throwable failureReason)
result
- public void setVeto(boolean veto)
veto
- public boolean isVeto()
public void setImmediateChanges(java.util.List immediateChanges)
immediateChanges
- new orchestrations which need to be executed. These orchestrations are executed right after the completion
of current event handler.public void setImmediateChanges(java.util.List immediateChanges, boolean processInSequence)
public java.util.List getImmediateChanges()
public boolean shouldProcessImmediateInSequence()
public void setDeferredChanges(java.util.List deferredChanges)
deferredChanges
- new orchestrations which need to be executed. These orchestrations are executed only after current
orchestration is completed.public java.util.List getDeferredChanges()
public void addWarning(java.lang.String warningCode)
warningCode
- warning code to be addedpublic java.util.List getWarnings()
public boolean shouldProcessingWait()
shouldProcessingWait
in interface HandlerResult
public void setProcessingWait(boolean wait)