Package org.camunda.bpm.engine.runtime
Interface Incident
-
- All Known Implementing Classes:
IncidentEntity
public interface IncidentAnIncidentrepresents a failure in the execution of a process instance.A possible failure could be for example a failed
Jobduring the execution, so that the job retry is equal zero (job.retries == 0). In that case an incident will be created an theincidentTypewill be set tofailedJobs.Furthermore, it is possible to create custom incidents with an individually
incidentTypeto indicate a failure in the execution.- Author:
- roman.smirnov
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTERNAL_TASK_HANDLER_TYPEHandler type for incidents created on external task failurestatic StringFAILED_JOB_HANDLER_TYPEHandler type for incidents created on job execution failure
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetActivityId()Returns the id of the activity of the process instance on which this incident has happened.StringgetAnnotation()Returns the annotation of this incidentStringgetCauseIncidentId()Returns the id of the incident on which this incident has been triggered.StringgetConfiguration()Returns the payload of this incident.StringgetExecutionId()Returns the specific execution on which this incident has happened.StringgetFailedActivityId()Returns the id of the activity on which the last exception occurred.StringgetHistoryConfiguration()Returns the history payload of this incident.StringgetId()Returns the unique identifier for this incident.StringgetIncidentMessage()Returns the incident message.DategetIncidentTimestamp()Time when the incident happened.StringgetIncidentType()Returns the type of this incident to identify the kind of incident.StringgetJobDefinitionId()Returns the id of the job definition the incident belongs to.StringgetProcessDefinitionId()Returns the id of the process definition of this process instance on which the incident has happened.StringgetProcessInstanceId()Returns the specific process instance on which this incident has happened.StringgetRootCauseIncidentId()Returns the id of the root incident on which this transitive incident has been triggered.StringgetTenantId()Returns the id of the tenant this incident belongs to.
-
-
-
Field Detail
-
FAILED_JOB_HANDLER_TYPE
static final String FAILED_JOB_HANDLER_TYPE
Handler type for incidents created on job execution failure- See Also:
- Constant Field Values
-
EXTERNAL_TASK_HANDLER_TYPE
static final String EXTERNAL_TASK_HANDLER_TYPE
Handler type for incidents created on external task failure- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
String getId()
Returns the unique identifier for this incident.
-
getIncidentTimestamp
Date getIncidentTimestamp()
Time when the incident happened.
-
getIncidentType
String getIncidentType()
Returns the type of this incident to identify the kind of incident.For example:
failedJobswill be returned in the case of an incident, which identify failed job during the execution of a process instance.
-
getIncidentMessage
String getIncidentMessage()
Returns the incident message.
-
getExecutionId
String getExecutionId()
Returns the specific execution on which this incident has happened.
-
getActivityId
String getActivityId()
Returns the id of the activity of the process instance on which this incident has happened.
-
getFailedActivityId
String getFailedActivityId()
Returns the id of the activity on which the last exception occurred.
-
getProcessInstanceId
String getProcessInstanceId()
Returns the specific process instance on which this incident has happened.
-
getProcessDefinitionId
String getProcessDefinitionId()
Returns the id of the process definition of this process instance on which the incident has happened.
-
getCauseIncidentId
String getCauseIncidentId()
Returns the id of the incident on which this incident has been triggered.
-
getRootCauseIncidentId
String getRootCauseIncidentId()
Returns the id of the root incident on which this transitive incident has been triggered.
-
getConfiguration
String getConfiguration()
Returns the payload of this incident.
-
getTenantId
String getTenantId()
Returns the id of the tenant this incident belongs to. Can benullif the incident belongs to no single tenant.
-
getJobDefinitionId
String getJobDefinitionId()
Returns the id of the job definition the incident belongs to. Can benullif the incident belongs to no job definition.
-
getHistoryConfiguration
String getHistoryConfiguration()
Returns the history payload of this incident.
-
getAnnotation
String getAnnotation()
Returns the annotation of this incident
-
-