Interface IncidentHandler
- 
- All Known Implementing Classes:
- CompositeIncidentHandler,- DefaultIncidentHandler
 
 public interface IncidentHandlerTheIncidentHandlerinterface may be implemented by components that handle and resolve incidents of a specific type that occur during the execution of a process instance.Custom implementations of this interface may be wired through ProcessEngineConfigurationImpl.setCustomIncidentHandlers(java.util.List).- Author:
- roman.smirnov
- See Also:
- FailedJobIncidentHandler,- Incident
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteIncident(IncidentContext context)Called in situations in which an incident handler may wish to delete existing incidents Example: when a scope is ended or a job is deleted.java.lang.StringgetIncidentHandlerType()Returns the incident type this handler activates for.IncidenthandleIncident(IncidentContext context, java.lang.String message)Handle an incident that arose in the context of an execution.voidresolveIncident(IncidentContext context)Called in situations in which an incident handler may wish to resolve existing incidents The implementation receives this callback to enable it to resolve any open incidents that may exist.
 
- 
- 
- 
Method Detail- 
getIncidentHandlerTypejava.lang.String getIncidentHandlerType() Returns the incident type this handler activates for.
 - 
handleIncidentIncident handleIncident(IncidentContext context, java.lang.String message) Handle an incident that arose in the context of an execution.
 - 
resolveIncidentvoid resolveIncident(IncidentContext context) Called in situations in which an incident handler may wish to resolve existing incidents The implementation receives this callback to enable it to resolve any open incidents that may exist.
 - 
deleteIncidentvoid deleteIncident(IncidentContext context) Called in situations in which an incident handler may wish to delete existing incidents Example: when a scope is ended or a job is deleted. The implementation receives this callback to enable it to delete any open incidents that may exist.
 
- 
 
-