Class DefaultIncidentHandler

  • All Implemented Interfaces:
    IncidentHandler

    public class DefaultIncidentHandler
    extends java.lang.Object
    implements IncidentHandler

    An incident handler that logs incidents of a certain type as instances of Incident to the engine database.

    By default, the process engine has two default handlers:

    Author:
    nico.rehwaldt, roman.smirnov, Falko Menge, Thorben Lindhauer
    See Also:
    IncidentHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String type  
    • Field Detail

      • type

        protected java.lang.String type
    • Constructor Detail

      • DefaultIncidentHandler

        public DefaultIncidentHandler​(java.lang.String type)
    • Method Detail

      • resolveIncident

        public void resolveIncident​(IncidentContext context)
        Description copied from interface: IncidentHandler
        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.
        Specified by:
        resolveIncident in interface IncidentHandler
      • deleteIncident

        public void deleteIncident​(IncidentContext context)
        Description copied from interface: IncidentHandler
        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.
        Specified by:
        deleteIncident in interface IncidentHandler
      • removeIncident

        protected void removeIncident​(IncidentContext context,
                                      boolean incidentResolved)