org.camunda.bpm.engine.impl.incident
Interface IncidentHandler

All Known Implementing Classes:
DefaultIncidentHandler

public interface IncidentHandler

The IncidentHandler interface 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 Summary
 void deleteIncident(IncidentContext context)
          Delete an incident that arose in the context of an execution.
 String getIncidentHandlerType()
          Returns the incident type this handler activates for.
 void handleIncident(IncidentContext context, String message)
          Handle an incident that arose in the context of an execution.
 void resolveIncident(IncidentContext context)
          Resolve an incident that arose in the context of an execution.
 

Method Detail

getIncidentHandlerType

String getIncidentHandlerType()
Returns the incident type this handler activates for.


handleIncident

void handleIncident(IncidentContext context,
                    String message)
Handle an incident that arose in the context of an execution.


resolveIncident

void resolveIncident(IncidentContext context)
Resolve an incident that arose in the context of an execution.


deleteIncident

void deleteIncident(IncidentContext context)
Delete an incident that arose in the context of an execution.



Copyright © 2016 camunda services GmbH. All rights reserved.