Class HistoricExternalTaskLogEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.event.HistoryEvent
-
- org.camunda.bpm.engine.impl.history.event.HistoricExternalTaskLogEntity
-
- All Implemented Interfaces:
Serializable
,HistoricExternalTaskLog
,DbEntity
,HistoricEntity
public class HistoricExternalTaskLogEntity extends HistoryEvent implements HistoricExternalTaskLog
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
activityId
protected String
activityInstanceId
protected String
errorDetailsByteArrayId
protected String
errorMessage
protected String
externalTaskId
protected long
priority
protected Integer
retries
protected int
state
protected String
tenantId
protected Date
timestamp
protected String
topicName
protected String
workerId
-
Fields inherited from class org.camunda.bpm.engine.impl.history.event.HistoryEvent
ACTIVITY_EVENT_TYPE_END, ACTIVITY_EVENT_TYPE_START, ACTIVITY_EVENT_TYPE_UPDATE, caseDefinitionId, caseDefinitionKey, caseDefinitionName, caseExecutionId, caseInstanceId, eventType, executionId, FORM_PROPERTY_UPDATE, id, IDENTITY_LINK_ADD, IDENTITY_LINK_DELETE, INCIDENT_CREATE, INCIDENT_DELETE, INCIDENT_RESOLVE, processDefinitionId, processDefinitionKey, processDefinitionName, processDefinitionVersion, processInstanceId, removalTime, rootProcessInstanceId, sequenceCounter, TASK_EVENT_TYPE_COMPLETE, TASK_EVENT_TYPE_CREATE, TASK_EVENT_TYPE_DELETE, TASK_EVENT_TYPE_UPDATE, VARIABLE_EVENT_TYPE_CREATE, VARIABLE_EVENT_TYPE_DELETE, VARIABLE_EVENT_TYPE_UPDATE
-
-
Constructor Summary
Constructors Constructor Description HistoricExternalTaskLogEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActivityId()
Returns the id of the activity which the external task associated with.String
getActivityInstanceId()
Returns the id of the activity instance on which the associated external task was created.protected ByteArrayEntity
getErrorByteArray()
String
getErrorDetails()
String
getErrorDetailsByteArrayId()
String
getErrorMessage()
Returns the message of the error that occurred by executing the associated external task.String
getExternalTaskId()
Returns the id of the associated external task.long
getPriority()
Returns the priority of the associated external task whenthis
log entry was created.Integer
getRetries()
Returns the retries of the associated external task before the associated external task has been executed and whenthis
log occurred.String
getRootProcessInstanceId()
Returns the specific root process instance id of the process instance on which the associated external task was created.int
getState()
String
getTenantId()
Returns the id of the tenant this external task log entry belongs to.Date
getTimestamp()
Returns the time whenthis
log occurred.String
getTopicName()
Returns the topic name of the associated external task.String
getWorkerId()
Returns the id of the worker that fetched the external task most recently.boolean
isCreationLog()
Returnstrue
whenthis
log represents the creation of the associated external task.boolean
isDeletionLog()
Returnstrue
whenthis
log represents the deletion of the associated external task.boolean
isFailureLog()
Returnstrue
whenthis
log represents the failed execution of the associated external task.boolean
isSuccessLog()
Returnstrue
whenthis
log represents the successful execution of the associated external task.void
setActivityId(String activityId)
void
setActivityInstanceId(String activityInstanceId)
void
setErrorDetails(String exception)
void
setErrorDetailsByteArrayId(String errorDetailsByteArrayId)
void
setErrorMessage(String errorMessage)
void
setExternalTaskId(String externalTaskId)
void
setPriority(long priority)
void
setRetries(Integer retries)
void
setRootProcessInstanceId(String rootProcessInstanceId)
void
setState(int state)
void
setTenantId(String tenantId)
void
setTimestamp(Date timestamp)
void
setTopicName(String topicName)
void
setWorkerId(String workerId)
-
Methods inherited from class org.camunda.bpm.engine.impl.history.event.HistoryEvent
getCaseDefinitionId, getCaseDefinitionKey, getCaseDefinitionName, getCaseExecutionId, getCaseInstanceId, getEventType, getExecutionId, getId, getPersistentState, getProcessDefinitionId, getProcessDefinitionKey, getProcessDefinitionName, getProcessDefinitionVersion, getProcessInstanceId, getRemovalTime, getSequenceCounter, isEventOfType, setCaseDefinitionId, setCaseDefinitionKey, setCaseDefinitionName, setCaseExecutionId, setCaseInstanceId, setEventType, setExecutionId, setId, setProcessDefinitionId, setProcessDefinitionKey, setProcessDefinitionName, setProcessDefinitionVersion, setProcessInstanceId, setRemovalTime, setSequenceCounter, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.history.HistoricExternalTaskLog
getExecutionId, getId, getProcessDefinitionId, getProcessDefinitionKey, getProcessInstanceId, getRemovalTime
-
-
-
-
Field Detail
-
timestamp
protected Date timestamp
-
externalTaskId
protected String externalTaskId
-
topicName
protected String topicName
-
workerId
protected String workerId
-
priority
protected long priority
-
retries
protected Integer retries
-
errorMessage
protected String errorMessage
-
errorDetailsByteArrayId
protected String errorDetailsByteArrayId
-
activityId
protected String activityId
-
activityInstanceId
protected String activityInstanceId
-
tenantId
protected String tenantId
-
state
protected int state
-
-
Method Detail
-
getTimestamp
public Date getTimestamp()
Description copied from interface:HistoricExternalTaskLog
Returns the time whenthis
log occurred.- Specified by:
getTimestamp
in interfaceHistoricExternalTaskLog
-
setTimestamp
public void setTimestamp(Date timestamp)
-
getExternalTaskId
public String getExternalTaskId()
Description copied from interface:HistoricExternalTaskLog
Returns the id of the associated external task.- Specified by:
getExternalTaskId
in interfaceHistoricExternalTaskLog
-
setExternalTaskId
public void setExternalTaskId(String externalTaskId)
-
getTopicName
public String getTopicName()
Description copied from interface:HistoricExternalTaskLog
Returns the topic name of the associated external task.- Specified by:
getTopicName
in interfaceHistoricExternalTaskLog
-
setTopicName
public void setTopicName(String topicName)
-
getWorkerId
public String getWorkerId()
Description copied from interface:HistoricExternalTaskLog
Returns the id of the worker that fetched the external task most recently.- Specified by:
getWorkerId
in interfaceHistoricExternalTaskLog
-
setWorkerId
public void setWorkerId(String workerId)
-
getRetries
public Integer getRetries()
Description copied from interface:HistoricExternalTaskLog
Returns the retries of the associated external task before the associated external task has been executed and whenthis
log occurred.- Specified by:
getRetries
in interfaceHistoricExternalTaskLog
-
setRetries
public void setRetries(Integer retries)
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:HistoricExternalTaskLog
Returns the message of the error that occurred by executing the associated external task. To get the full error details, useHistoryService.getHistoricExternalTaskLogErrorDetails(String)
- Specified by:
getErrorMessage
in interfaceHistoricExternalTaskLog
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
getErrorDetailsByteArrayId
public String getErrorDetailsByteArrayId()
-
setErrorDetailsByteArrayId
public void setErrorDetailsByteArrayId(String errorDetailsByteArrayId)
-
getErrorDetails
public String getErrorDetails()
-
setErrorDetails
public void setErrorDetails(String exception)
-
getErrorByteArray
protected ByteArrayEntity getErrorByteArray()
-
getActivityId
public String getActivityId()
Description copied from interface:HistoricExternalTaskLog
Returns the id of the activity which the external task associated with.- Specified by:
getActivityId
in interfaceHistoricExternalTaskLog
-
setActivityId
public void setActivityId(String activityId)
-
getActivityInstanceId
public String getActivityInstanceId()
Description copied from interface:HistoricExternalTaskLog
Returns the id of the activity instance on which the associated external task was created.- Specified by:
getActivityInstanceId
in interfaceHistoricExternalTaskLog
-
setActivityInstanceId
public void setActivityInstanceId(String activityInstanceId)
-
getTenantId
public String getTenantId()
Description copied from interface:HistoricExternalTaskLog
Returns the id of the tenant this external task log entry belongs to. Can benull
if the external task log entry belongs to no single tenant.- Specified by:
getTenantId
in interfaceHistoricExternalTaskLog
-
setTenantId
public void setTenantId(String tenantId)
-
getPriority
public long getPriority()
Description copied from interface:HistoricExternalTaskLog
Returns the priority of the associated external task whenthis
log entry was created.- Specified by:
getPriority
in interfaceHistoricExternalTaskLog
-
setPriority
public void setPriority(long priority)
-
getState
public int getState()
-
setState
public void setState(int state)
-
isCreationLog
public boolean isCreationLog()
Description copied from interface:HistoricExternalTaskLog
Returnstrue
whenthis
log represents the creation of the associated external task.- Specified by:
isCreationLog
in interfaceHistoricExternalTaskLog
-
isFailureLog
public boolean isFailureLog()
Description copied from interface:HistoricExternalTaskLog
Returnstrue
whenthis
log represents the failed execution of the associated external task.- Specified by:
isFailureLog
in interfaceHistoricExternalTaskLog
-
isSuccessLog
public boolean isSuccessLog()
Description copied from interface:HistoricExternalTaskLog
Returnstrue
whenthis
log represents the successful execution of the associated external task.- Specified by:
isSuccessLog
in interfaceHistoricExternalTaskLog
-
isDeletionLog
public boolean isDeletionLog()
Description copied from interface:HistoricExternalTaskLog
Returnstrue
whenthis
log represents the deletion of the associated external task.- Specified by:
isDeletionLog
in interfaceHistoricExternalTaskLog
-
getRootProcessInstanceId
public String getRootProcessInstanceId()
Description copied from interface:HistoricExternalTaskLog
Returns the specific root process instance id of the process instance on which the associated external task was created.- Specified by:
getRootProcessInstanceId
in interfaceHistoricExternalTaskLog
- Overrides:
getRootProcessInstanceId
in classHistoryEvent
-
setRootProcessInstanceId
public void setRootProcessInstanceId(String rootProcessInstanceId)
- Overrides:
setRootProcessInstanceId
in classHistoryEvent
-
-