Package com.nuix.superutilities.cases
Class CaseOpenErrorEvent
- java.lang.Object
-
- com.nuix.superutilities.cases.CaseOpenErrorEvent
-
public class CaseOpenErrorEvent extends java.lang.ObjectThis class is used to provide a callback information regarding a case encountered byBulkCaseProcessorwhich had and error when opened. This class also provides a way for that callback to instructBulkCaseProcessorhow to react to this.
-
-
Constructor Summary
Constructors Constructor Description CaseOpenErrorEvent(CaseInfo erroredCaseInfo, java.lang.Exception caseOpenError)Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()NotifiesBulkCaseProcessorthat all further processing should be abortedCaseInfogetCaseInfo()Gets information related to case which was lockedjava.lang.ExceptiongetError()Gets the exception which was thrownCaseIssueReactiongetReaction()Gets the reaction that should be takenvoidretry()NotifiesBulkCaseProcessorthat it should try to open this case againvoidsetReaction(CaseIssueReaction reaction)Sets the reaction that should be takenvoidskipCase()NotifiesBulkCaseProcessorthat this case should be skipped in response
-
-
-
Constructor Detail
-
CaseOpenErrorEvent
public CaseOpenErrorEvent(CaseInfo erroredCaseInfo, java.lang.Exception caseOpenError)
Creates a new instance- Parameters:
erroredCaseInfo- Information related to the case which had the errorcaseOpenError- The exception thrown while opening the case
-
-
Method Detail
-
getCaseInfo
public CaseInfo getCaseInfo()
Gets information related to case which was locked- Returns:
- Information related to case which was locked
-
getReaction
public CaseIssueReaction getReaction()
Gets the reaction that should be taken- Returns:
- The reaction to take
-
setReaction
public void setReaction(CaseIssueReaction reaction)
Sets the reaction that should be taken- Parameters:
reaction- The reaction to take
-
getError
public java.lang.Exception getError()
Gets the exception which was thrown- Returns:
- The exception thrown
-
skipCase
public void skipCase()
NotifiesBulkCaseProcessorthat this case should be skipped in response
-
retry
public void retry()
NotifiesBulkCaseProcessorthat it should try to open this case again
-
abort
public void abort()
NotifiesBulkCaseProcessorthat all further processing should be aborted
-
-