Class CaseClosedListener

java.lang.Object
com.aquima.interactions.process.impl.CaseClosedListener
All Implemented Interfaces:
IProcessCaseChangeListener

public final class CaseClosedListener extends Object implements IProcessCaseChangeListener
Internal listener used for detecting the situation where handling a message event results in a case being closed and deleted.

This listener delegates all notifications to another listener and also detects when a specific case has been closed.

Since:
9.8.8
Author:
Petru Galanton
  • Constructor Details

    • CaseClosedListener

      public CaseClosedListener(IProcessCaseChangeListener delegate, long caseId)
      Creates a new instance.
      Parameters:
      delegate - the original listener, may be null.
      caseId - the ID of the case which might be closed as a result of handling a message event.
  • Method Details

    • caseUpdated

      public void caseUpdated(long caseId)
      Description copied from interface: IProcessCaseChangeListener
      This method is invoked when a case is updated by the message event.
      Specified by:
      caseUpdated in interface IProcessCaseChangeListener
      Parameters:
      caseId - The involved process case id, never null.
    • caseCreated

      public void caseCreated(long caseId)
      Description copied from interface: IProcessCaseChangeListener
      This method is invoked when a case is created by the message event.
      Specified by:
      caseCreated in interface IProcessCaseChangeListener
      Parameters:
      caseId - The created process case id, never null.
    • caseClosed

      public void caseClosed(long caseId)
      Description copied from interface: IProcessCaseChangeListener
      This method is invoked when a case is closed by the message event.
      Specified by:
      caseClosed in interface IProcessCaseChangeListener
      Parameters:
      caseId - the closed process case id.
    • isCaseClosed

      public boolean isCaseClosed()
      Indicates whether the monitored case has been closed.
      Returns:
      true if the case has been closed, false otherwise.