|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.persistence.entity.IncidentEntity
public class IncidentEntity
| Field Summary | |
|---|---|
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 |
jobDefinitionId
|
protected String |
processDefinitionId
|
protected String |
processInstanceId
|
protected int |
revision
|
protected String |
rootCauseIncidentId
|
protected String |
tenantId
|
| Fields inherited from interface org.camunda.bpm.engine.runtime.Incident |
|---|
EXTERNAL_TASK_HANDLER_TYPE, FAILED_JOB_HANDLER_TYPE |
| Constructor Summary | |
|---|---|
IncidentEntity()
|
|
| Method Summary | |
|---|---|
protected static IncidentEntity |
create(String incidentType)
|
static IncidentEntity |
createAndInsertIncident(String incidentType,
IncidentContext context,
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()
|
boolean |
equals(Object obj)
|
protected void |
fireHistoricIncidentEvent(HistoryEventType eventType)
|
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. |
String |
getJobDefinitionId()
Returns the id of the job definition the incident belongs to. |
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database. |
ProcessDefinitionEntity |
getProcessDefinition()
|
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. |
Set<String> |
getReferencedEntityIds()
|
int |
getRevision()
|
int |
getRevisionNext()
|
String |
getRootCauseIncidentId()
Returns the id of the root incident on which this transitive incident has been triggered. |
String |
getTenantId()
Returns the id of the tenant this incident belongs to. |
int |
hashCode()
|
protected static void |
insert(IncidentEntity incident)
|
protected void |
remove(boolean resolved)
|
void |
resolve()
|
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 |
setJobDefinitionId(String jobDefinitionId)
|
void |
setProcessDefinitionId(String processDefinitionId)
|
void |
setProcessInstanceId(String processInstanceId)
|
void |
setRevision(int revision)
|
void |
setRootCauseIncidentId(String rootCauseIncidentId)
|
void |
setTenantId(String tenantId)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int revision
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
protected String tenantId
protected String jobDefinitionId
| Constructor Detail |
|---|
public IncidentEntity()
| Method Detail |
|---|
public List<IncidentEntity> createRecursiveIncidents()
protected void createRecursiveIncidents(String rootCauseIncidentId,
List<IncidentEntity> createdIncidents)
public static IncidentEntity createAndInsertIncident(String incidentType,
IncidentContext context,
String message)
protected static IncidentEntity create(String incidentType)
protected static void insert(IncidentEntity incident)
public void delete()
public void resolve()
protected void remove(boolean resolved)
protected void fireHistoricIncidentEvent(HistoryEventType eventType)
public Set<String> getReferencedEntityIds()
getReferencedEntityIds in interface HasDbReferencespublic String getId()
Incident
getId in interface DbEntitygetId in interface Incidentpublic void setId(String id)
setId in interface DbEntitypublic Date getIncidentTimestamp()
Incident
getIncidentTimestamp 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 IncidentIncident.FAILED_JOB_HANDLER_TYPE,
Incident.EXTERNAL_TASK_HANDLER_TYPEpublic void setIncidentType(String incidentType)
public String getIncidentMessage()
Incident
getIncidentMessage in interface Incidentpublic void setIncidentMessage(String incidentMessage)
public String getExecutionId()
Incident
getExecutionId in interface Incidentpublic void setExecutionId(String executionId)
public String getActivityId()
Incident
getActivityId in interface Incidentpublic void setActivityId(String activityId)
public String getProcessInstanceId()
Incident
getProcessInstanceId in interface Incidentpublic void setProcessInstanceId(String processInstanceId)
public ProcessDefinitionEntity getProcessDefinition()
public String getProcessDefinitionId()
Incident
getProcessDefinitionId in interface Incidentpublic void setProcessDefinitionId(String processDefinitionId)
public String getCauseIncidentId()
Incident
getCauseIncidentId in interface Incidentpublic void setCauseIncidentId(String causeIncidentId)
public String getRootCauseIncidentId()
Incident
getRootCauseIncidentId in interface Incidentpublic void setRootCauseIncidentId(String rootCauseIncidentId)
public String getConfiguration()
Incident
getConfiguration in interface Incidentpublic void setConfiguration(String configuration)
public String getTenantId()
Incidentnull
if the incident belongs to no single tenant.
getTenantId in interface Incidentpublic void setTenantId(String tenantId)
public void setJobDefinitionId(String jobDefinitionId)
public String getJobDefinitionId()
Incidentnull
if the incident belongs to no job definition.
getJobDefinitionId in interface Incidentpublic void setExecution(ExecutionEntity execution)
public ExecutionEntity getExecution()
public Object getPersistentState()
DbEntity
getPersistentState in interface DbEntitypublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic int getRevision()
getRevision in interface HasDbRevisionpublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||