java.lang.Object
org.eximeebpms.bpm.engine.impl.persistence.entity.IncidentEntity
All Implemented Interfaces:
DbEntity, HasDbReferences, HasDbRevision, Incident

public class IncidentEntity extends Object implements Incident, DbEntity, HasDbRevision, HasDbReferences
Author:
roman.smirnov
  • Field Details Link icon

    • LOG Link icon

      protected static final IncidentLogger LOG
    • revision Link icon

      protected int revision
    • id Link icon

      protected String id
    • incidentTimestamp Link icon

      protected Date incidentTimestamp
    • incidentType Link icon

      protected String incidentType
    • executionId Link icon

      protected String executionId
    • activityId Link icon

      protected String activityId
    • processInstanceId Link icon

      protected String processInstanceId
    • processDefinitionId Link icon

      protected String processDefinitionId
    • causeIncidentId Link icon

      protected String causeIncidentId
    • rootCauseIncidentId Link icon

      protected String rootCauseIncidentId
    • configuration Link icon

      protected String configuration
    • incidentMessage Link icon

      protected String incidentMessage
    • tenantId Link icon

      protected String tenantId
    • jobDefinitionId Link icon

      protected String jobDefinitionId
    • historyConfiguration Link icon

      protected String historyConfiguration
    • failedActivityId Link icon

      protected String failedActivityId
    • annotation Link icon

      protected String annotation
  • Constructor Details Link icon

    • IncidentEntity Link icon

      public IncidentEntity()
  • Method Details Link icon

    • createRecursiveIncidents Link icon

      public List<IncidentEntity> createRecursiveIncidents()
    • createRecursiveIncidents Link icon

      protected void createRecursiveIncidents(String rootCauseIncidentId, List<IncidentEntity> createdIncidents)
      Instantiate recursive a new incident a super execution (i.e. super process instance) which is affected from this incident. For example: a super process instance called via CallActivity a new process instance on which an incident happened, so that the super process instance has an incident too.
    • createAndInsertIncident Link icon

      public static IncidentEntity createAndInsertIncident(String incidentType, IncidentContext context, String message)
    • create Link icon

      protected static IncidentEntity create(String incidentType)
    • insert Link icon

      protected static void insert(IncidentEntity incident)
    • delete Link icon

      public void delete()
    • resolve Link icon

      public void resolve()
    • remove Link icon

      protected void remove(boolean resolved)
    • fireHistoricIncidentEvent Link icon

      protected void fireHistoricIncidentEvent(HistoryEventType eventType)
    • getReferencedEntityIds Link icon

      public Set<String> getReferencedEntityIds()
      Description copied from interface: HasDbReferences

      Scope: IN-MEMORY references

      Specified by:
      getReferencedEntityIds in interface HasDbReferences
      Returns:
      the ids of the entities that this entity references. Should only return ids for entities of the same type
    • getReferencedEntitiesIdAndClass Link icon

      public Map<String,Class> getReferencedEntitiesIdAndClass()
      Description copied from interface: HasDbReferences

      Scope: IN-MEMORY references

      Specified by:
      getReferencedEntitiesIdAndClass in interface HasDbReferences
      Returns:
      a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
    • getId Link icon

      public String getId()
      Description copied from interface: Incident
      Returns the unique identifier for this incident.
      Specified by:
      getId in interface DbEntity
      Specified by:
      getId in interface Incident
    • setId Link icon

      public void setId(String id)
      Specified by:
      setId in interface DbEntity
    • getIncidentTimestamp Link icon

      public Date getIncidentTimestamp()
      Description copied from interface: Incident
      Time when the incident happened.
      Specified by:
      getIncidentTimestamp in interface Incident
    • setIncidentTimestamp Link icon

      public void setIncidentTimestamp(Date incidentTimestamp)
    • getIncidentType Link icon

      public String getIncidentType()
      Description copied from interface: Incident
      Returns the type of this incident to identify the kind of incident.

      For example: failedJobs will be returned in the case of an incident, which identify failed job during the execution of a process instance.

      Specified by:
      getIncidentType in interface Incident
      See Also:
    • setIncidentType Link icon

      public void setIncidentType(String incidentType)
    • getIncidentMessage Link icon

      public String getIncidentMessage()
      Description copied from interface: Incident
      Returns the incident message.
      Specified by:
      getIncidentMessage in interface Incident
    • setIncidentMessage Link icon

      public void setIncidentMessage(String incidentMessage)
    • getExecutionId Link icon

      public String getExecutionId()
      Description copied from interface: Incident
      Returns the specific execution on which this incident has happened.
      Specified by:
      getExecutionId in interface Incident
    • setExecutionId Link icon

      public void setExecutionId(String executionId)
    • getActivityId Link icon

      public String getActivityId()
      Description copied from interface: Incident
      Returns the id of the activity of the process instance on which this incident has happened.
      Specified by:
      getActivityId in interface Incident
    • setActivityId Link icon

      public void setActivityId(String activityId)
    • getProcessInstanceId Link icon

      public String getProcessInstanceId()
      Description copied from interface: Incident
      Returns the specific process instance on which this incident has happened.
      Specified by:
      getProcessInstanceId in interface Incident
    • setProcessInstanceId Link icon

      public void setProcessInstanceId(String processInstanceId)
    • getProcessDefinition Link icon

      public ProcessDefinitionEntity getProcessDefinition()
    • getProcessDefinitionId Link icon

      public String getProcessDefinitionId()
      Description copied from interface: Incident
      Returns the id of the process definition of this process instance on which the incident has happened.
      Specified by:
      getProcessDefinitionId in interface Incident
    • setProcessDefinitionId Link icon

      public void setProcessDefinitionId(String processDefinitionId)
    • getCauseIncidentId Link icon

      public String getCauseIncidentId()
      Description copied from interface: Incident
      Returns the id of the incident on which this incident has been triggered.
      Specified by:
      getCauseIncidentId in interface Incident
    • setCauseIncidentId Link icon

      public void setCauseIncidentId(String causeIncidentId)
    • getRootCauseIncidentId Link icon

      public String getRootCauseIncidentId()
      Description copied from interface: Incident
      Returns the id of the root incident on which this transitive incident has been triggered.
      Specified by:
      getRootCauseIncidentId in interface Incident
    • setRootCauseIncidentId Link icon

      public void setRootCauseIncidentId(String rootCauseIncidentId)
    • getConfiguration Link icon

      public String getConfiguration()
      Description copied from interface: Incident
      Returns the payload of this incident.
      Specified by:
      getConfiguration in interface Incident
    • setConfiguration Link icon

      public void setConfiguration(String configuration)
    • getTenantId Link icon

      public String getTenantId()
      Description copied from interface: Incident
      Returns the id of the tenant this incident belongs to. Can be null if the incident belongs to no single tenant.
      Specified by:
      getTenantId in interface Incident
    • setTenantId Link icon

      public void setTenantId(String tenantId)
    • setJobDefinitionId Link icon

      public void setJobDefinitionId(String jobDefinitionId)
    • getJobDefinitionId Link icon

      public String getJobDefinitionId()
      Description copied from interface: Incident
      Returns the id of the job definition the incident belongs to. Can be null if the incident belongs to no job definition.
      Specified by:
      getJobDefinitionId in interface Incident
    • setExecution Link icon

      public void setExecution(ExecutionEntity execution)
    • getExecution Link icon

      public ExecutionEntity getExecution()
    • getPersistentState Link icon

      public Object getPersistentState()
      Description copied from interface: DbEntity
      Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
      Specified by:
      getPersistentState in interface DbEntity
    • setRevision Link icon

      public void setRevision(int revision)
      Specified by:
      setRevision in interface HasDbRevision
    • getRevision Link icon

      public int getRevision()
      Specified by:
      getRevision in interface HasDbRevision
    • getRevisionNext Link icon

      public int getRevisionNext()
      Specified by:
      getRevisionNext in interface HasDbRevision
    • getHistoryConfiguration Link icon

      public String getHistoryConfiguration()
      Description copied from interface: Incident
      Returns the history payload of this incident.
      Specified by:
      getHistoryConfiguration in interface Incident
    • setHistoryConfiguration Link icon

      public void setHistoryConfiguration(String historyConfiguration)
    • getFailedActivityId Link icon

      public String getFailedActivityId()
      Description copied from interface: Incident
      Returns the id of the activity on which the last exception occurred.
      Specified by:
      getFailedActivityId in interface Incident
    • setFailedActivityId Link icon

      public void setFailedActivityId(String failedActivityId)
    • getAnnotation Link icon

      public String getAnnotation()
      Description copied from interface: Incident
      Returns the annotation of this incident
      Specified by:
      getAnnotation in interface Incident
    • setAnnotation Link icon

      public void setAnnotation(String annotation)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals Link icon

      public boolean equals(Object obj)
      Overrides:
      equals in class Object