public class DefaultIncidentHandler extends 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:
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| Constructor and Description |
|---|
DefaultIncidentHandler(String type) |
| Modifier and Type | Method and Description |
|---|---|
Incident |
createIncident(String processDefinitionId,
String activityId,
String executionId,
String jobId,
String message) |
void |
deleteIncident(String processDefinitionId,
String activityId,
String executionId,
String configuration)
Delete an incident that arose in the context of an execution.
|
String |
getIncidentHandlerType()
Returns the incident type this handler activates for.
|
void |
handleIncident(String processDefinitionId,
String activityId,
String executionId,
String jobId,
String message)
Handle an incident that arose in the context of an execution.
|
protected void |
removeIncident(String processDefinitionId,
String activityId,
String executionId,
String configuration,
boolean incidentResolved) |
void |
resolveIncident(String processDefinitionId,
String activityId,
String executionId,
String configuration)
Resolve an incident that arose in the context of an execution.
|
protected String type
public DefaultIncidentHandler(String type)
public String getIncidentHandlerType()
IncidentHandlergetIncidentHandlerType in interface IncidentHandlerpublic void handleIncident(String processDefinitionId, String activityId, String executionId, String jobId, String message)
IncidentHandlerhandleIncident in interface IncidentHandlerpublic Incident createIncident(String processDefinitionId, String activityId, String executionId, String jobId, String message)
public void resolveIncident(String processDefinitionId, String activityId, String executionId, String configuration)
IncidentHandlerresolveIncident in interface IncidentHandlerpublic void deleteIncident(String processDefinitionId, String activityId, String executionId, String configuration)
IncidentHandlerdeleteIncident in interface IncidentHandlerCopyright © 2018. All rights reserved.