Class CaseClosedListener
java.lang.Object
com.aquima.interactions.process.impl.CaseClosedListener
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCaseClosedListener
(IProcessCaseChangeListener delegate, long caseId) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
caseClosed
(long caseId) This method is invoked when a case is closed by the message event.void
caseCreated
(long caseId) This method is invoked when a case is created by the message event.void
caseUpdated
(long caseId) This method is invoked when a case is updated by the message event.boolean
Indicates whether the monitored case has been closed.
-
Constructor Details
-
CaseClosedListener
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 interfaceIProcessCaseChangeListener
- 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 interfaceIProcessCaseChangeListener
- 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 interfaceIProcessCaseChangeListener
- 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.
-