Package com.nuix.superutilities.cases
Class CaseOpenErrorEvent
- java.lang.Object
-
- com.nuix.superutilities.cases.CaseOpenErrorEvent
-
public class CaseOpenErrorEvent extends java.lang.Object
This class is used to provide a callback information regarding a case encountered byBulkCaseProcessor
which had and error when opened. This class also provides a way for that callback to instructBulkCaseProcessor
how 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 void
abort()
NotifiesBulkCaseProcessor
that all further processing should be abortedCaseInfo
getCaseInfo()
Gets information related to case which was lockedjava.lang.Exception
getError()
Gets the exception which was thrownCaseIssueReaction
getReaction()
Gets the reaction that should be takenvoid
retry()
NotifiesBulkCaseProcessor
that it should try to open this case againvoid
setReaction(CaseIssueReaction reaction)
Sets the reaction that should be takenvoid
skipCase()
NotifiesBulkCaseProcessor
that 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()
NotifiesBulkCaseProcessor
that this case should be skipped in response
-
retry
public void retry()
NotifiesBulkCaseProcessor
that it should try to open this case again
-
abort
public void abort()
NotifiesBulkCaseProcessor
that all further processing should be aborted
-
-