|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.camunda.bpm.engine.impl.incident.DefaultIncidentHandler
public class DefaultIncidentHandler
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:
failedJob
: Indicates jobs without retries left. This incident handler is active by default and must be disabled
via ProcessEngineConfiguration.setCreateIncidentOnFailedJobEnabled(boolean)
.
failedExternalTask
: Indicates external tasks without retries left
IncidentHandler
Field Summary | |
---|---|
protected String |
type
|
Constructor Summary | |
---|---|
DefaultIncidentHandler(String type)
|
Method Summary | |
---|---|
Incident |
createIncident(IncidentContext context,
String message)
|
void |
deleteIncident(IncidentContext context)
Called in situations in which an incidenthandler may wich to delete existing incidents Example: when a scope is ended or a job is deleted. |
String |
getIncidentHandlerType()
Returns the incident type this handler activates for. |
Incident |
handleIncident(IncidentContext context,
String message)
Handle an incident that arose in the context of an execution. |
protected void |
removeIncident(IncidentContext context,
boolean incidentResolved)
|
void |
resolveIncident(IncidentContext context)
Called in situations in which an incidenthandler may wich to resolve existing incidents The implementation receives this callback to enable it to resolve any open incidents that may exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String type
Constructor Detail |
---|
public DefaultIncidentHandler(String type)
Method Detail |
---|
public String getIncidentHandlerType()
IncidentHandler
getIncidentHandlerType
in interface IncidentHandler
public Incident handleIncident(IncidentContext context, String message)
IncidentHandler
handleIncident
in interface IncidentHandler
public Incident createIncident(IncidentContext context, String message)
public void resolveIncident(IncidentContext context)
IncidentHandler
resolveIncident
in interface IncidentHandler
public void deleteIncident(IncidentContext context)
IncidentHandler
deleteIncident
in interface IncidentHandler
protected void removeIncident(IncidentContext context, boolean incidentResolved)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |