public class IncidentEntity extends Object implements Incident, PersistentObject
| Modifier and Type | Field and Description |
|---|---|
protected String |
activityId |
protected String |
causeIncidentId |
protected String |
configuration |
protected String |
executionId |
protected String |
id |
protected String |
incidentMessage |
protected Date |
incidentTimestamp |
protected String |
incidentType |
protected String |
processDefinitionId |
protected String |
processInstanceId |
protected String |
rootCauseIncidentId |
| Constructor and Description |
|---|
IncidentEntity() |
| Modifier and Type | Method and Description |
|---|---|
static IncidentEntity |
createAndInsertIncident(String incidentType,
String configuration,
String message) |
static IncidentEntity |
createAndInsertIncident(String incidentType,
String executionId,
String configuration,
String message) |
static IncidentEntity |
createAndInsertIncident(String incidentType,
String processDefinitionId,
String activityId,
String configuration,
String message) |
List<IncidentEntity> |
createRecursiveIncidents() |
protected void |
createRecursiveIncidents(String rootCauseIncidentId,
List<IncidentEntity> createdIncidents)
Instantiate recursive a new incident a super execution
(i.e.
|
void |
delete() |
String |
getActivityId()
Returns the id of the activity of the process instance
on which this incident has happened.
|
String |
getCauseIncidentId()
Returns the id of the incident on which this incident
has been triggered.
|
String |
getConfiguration()
Returns the payload of this incident.
|
ExecutionEntity |
getExecution() |
String |
getExecutionId()
Returns the specific execution on which this
incident has happened.
|
String |
getId()
Returns the unique identifier for this incident.
|
String |
getIncidentMessage()
Returns the incident message.
|
Date |
getIncidentTimestamp()
Time when the incident happened.
|
String |
getIncidentType()
Returns the type of this incident to identify the
kind of incident.
|
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
String |
getProcessDefinitionId()
Returns the id of the process definition of this
process instance on which the incident has happened.
|
String |
getProcessInstanceId()
Returns the specific process instance on which this
incident has happened.
|
String |
getRootCauseIncidentId()
Returns the id of the root incident on which
this transitive incident has been triggered.
|
void |
setActivityId(String activityId) |
void |
setCauseIncidentId(String causeIncidentId) |
void |
setConfiguration(String configuration) |
void |
setExecution(ExecutionEntity execution) |
void |
setExecutionId(String executionId) |
void |
setId(String id) |
void |
setIncidentMessage(String incidentMessage) |
void |
setIncidentTimestamp(Date incidentTimestamp) |
void |
setIncidentType(String incidentType) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setRootCauseIncidentId(String rootCauseIncidentId) |
String |
toString() |
protected String id
protected Date incidentTimestamp
protected String incidentType
protected String executionId
protected String activityId
protected String processInstanceId
protected String processDefinitionId
protected String causeIncidentId
protected String rootCauseIncidentId
protected String configuration
protected String incidentMessage
public List<IncidentEntity> createRecursiveIncidents()
protected void createRecursiveIncidents(String rootCauseIncidentId, List<IncidentEntity> createdIncidents)
public static IncidentEntity createAndInsertIncident(String incidentType, String configuration, String message)
public static IncidentEntity createAndInsertIncident(String incidentType, String executionId, String configuration, String message)
public static IncidentEntity createAndInsertIncident(String incidentType, String processDefinitionId, String activityId, String configuration, String message)
public void delete()
public String getId()
IncidentgetId in interface PersistentObjectgetId in interface Incidentpublic void setId(String id)
setId in interface PersistentObjectpublic Date getIncidentTimestamp()
IncidentgetIncidentTimestamp in interface Incidentpublic void setIncidentTimestamp(Date incidentTimestamp)
public String getIncidentType()
Incident
For example: failedJobs will be returned
in the case of an incident, which identify failed job
during the execution of a process instance.
getIncidentType in interface Incidentpublic void setIncidentType(String incidentType)
public String getIncidentMessage()
IncidentgetIncidentMessage in interface Incidentpublic void setIncidentMessage(String incidentMessage)
public String getExecutionId()
IncidentgetExecutionId in interface Incidentpublic void setExecutionId(String executionId)
public String getActivityId()
IncidentgetActivityId in interface Incidentpublic void setActivityId(String activityId)
public String getProcessInstanceId()
IncidentgetProcessInstanceId in interface Incidentpublic void setProcessInstanceId(String processInstanceId)
public String getProcessDefinitionId()
IncidentgetProcessDefinitionId in interface Incidentpublic void setProcessDefinitionId(String processDefinitionId)
public String getCauseIncidentId()
IncidentgetCauseIncidentId in interface Incidentpublic void setCauseIncidentId(String causeIncidentId)
public String getRootCauseIncidentId()
IncidentgetRootCauseIncidentId in interface Incidentpublic void setRootCauseIncidentId(String rootCauseIncidentId)
public String getConfiguration()
IncidentgetConfiguration in interface Incidentpublic void setConfiguration(String configuration)
public void setExecution(ExecutionEntity execution)
public ExecutionEntity getExecution()
public Object getPersistentState()
PersistentObjectgetPersistentState in interface PersistentObjectCopyright © 2015. All rights reserved.