Class CaseOpenErrorEvent


  • public class CaseOpenErrorEvent
    extends java.lang.Object
    This class is used to provide a callback information regarding a case encountered by BulkCaseProcessor which had and error when opened. This class also provides a way for that callback to instruct BulkCaseProcessor how to react to this.
    • 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 error
        caseOpenError - 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()
        Notifies BulkCaseProcessor that this case should be skipped in response
      • retry

        public void retry()
        Notifies BulkCaseProcessor that it should try to open this case again
      • abort

        public void abort()
        Notifies BulkCaseProcessor that all further processing should be aborted