Class HistoricExternalTaskLogEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.event.HistoryEvent
-
- org.camunda.bpm.engine.impl.history.event.HistoricExternalTaskLogEntity
-
- All Implemented Interfaces:
java.io.Serializable
,HistoricExternalTaskLog
,DbEntity
,HistoricEntity
public class HistoricExternalTaskLogEntity extends HistoryEvent implements HistoricExternalTaskLog
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityId
protected java.lang.String
activityInstanceId
protected java.lang.String
errorDetailsByteArrayId
protected java.lang.String
errorMessage
protected java.lang.String
externalTaskId
protected long
priority
protected java.lang.Integer
retries
protected int
state
protected java.lang.String
tenantId
protected java.util.Date
timestamp
protected java.lang.String
topicName
protected java.lang.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 java.lang.String
getActivityId()
Returns the id of the activity which the external task associated with.java.lang.String
getActivityInstanceId()
Returns the id of the activity instance on which the associated external task was created.protected ByteArrayEntity
getErrorByteArray()
java.lang.String
getErrorDetails()
java.lang.String
getErrorDetailsByteArrayId()
java.lang.String
getErrorMessage()
Returns the message of the error that occurred by executing the associated external task.java.lang.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.java.lang.Integer
getRetries()
Returns the retries of the associated external task before the associated external task has been executed and whenthis
log occurred.java.lang.String
getRootProcessInstanceId()
Returns the specific root process instance id of the process instance on which the associated external task was created.int
getState()
java.lang.String
getTenantId()
Returns the id of the tenant this external task log entry belongs to.java.util.Date
getTimestamp()
Returns the time whenthis
log occurred.java.lang.String
getTopicName()
Returns the topic name of the associated external task.java.lang.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(java.lang.String activityId)
void
setActivityInstanceId(java.lang.String activityInstanceId)
void
setErrorDetails(java.lang.String exception)
void
setErrorDetailsByteArrayId(java.lang.String errorDetailsByteArrayId)
void
setErrorMessage(java.lang.String errorMessage)
void
setExternalTaskId(java.lang.String externalTaskId)
void
setPriority(long priority)
void
setRetries(java.lang.Integer retries)
void
setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
void
setState(int state)
void
setTenantId(java.lang.String tenantId)
void
setTimestamp(java.util.Date timestamp)
void
setTopicName(java.lang.String topicName)
void
setWorkerId(java.lang.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 java.util.Date timestamp
-
externalTaskId
protected java.lang.String externalTaskId
-
topicName
protected java.lang.String topicName
-
workerId
protected java.lang.String workerId
-
priority
protected long priority
-
retries
protected java.lang.Integer retries
-
errorMessage
protected java.lang.String errorMessage
-
errorDetailsByteArrayId
protected java.lang.String errorDetailsByteArrayId
-
activityId
protected java.lang.String activityId
-
activityInstanceId
protected java.lang.String activityInstanceId
-
tenantId
protected java.lang.String tenantId
-
state
protected int state
-
-
Method Detail
-
getTimestamp
public java.util.Date getTimestamp()
Description copied from interface:HistoricExternalTaskLog
Returns the time whenthis
log occurred.- Specified by:
getTimestamp
in interfaceHistoricExternalTaskLog
-
setTimestamp
public void setTimestamp(java.util.Date timestamp)
-
getExternalTaskId
public java.lang.String getExternalTaskId()
Description copied from interface:HistoricExternalTaskLog
Returns the id of the associated external task.- Specified by:
getExternalTaskId
in interfaceHistoricExternalTaskLog
-
setExternalTaskId
public void setExternalTaskId(java.lang.String externalTaskId)
-
getTopicName
public java.lang.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(java.lang.String topicName)
-
getWorkerId
public java.lang.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(java.lang.String workerId)
-
getRetries
public java.lang.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(java.lang.Integer retries)
-
getErrorMessage
public java.lang.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(java.lang.String errorMessage)
-
getErrorDetailsByteArrayId
public java.lang.String getErrorDetailsByteArrayId()
-
setErrorDetailsByteArrayId
public void setErrorDetailsByteArrayId(java.lang.String errorDetailsByteArrayId)
-
getErrorDetails
public java.lang.String getErrorDetails()
-
setErrorDetails
public void setErrorDetails(java.lang.String exception)
-
getErrorByteArray
protected ByteArrayEntity getErrorByteArray()
-
getActivityId
public java.lang.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(java.lang.String activityId)
-
getActivityInstanceId
public java.lang.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(java.lang.String activityInstanceId)
-
getTenantId
public java.lang.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(java.lang.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 java.lang.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(java.lang.String rootProcessInstanceId)
- Overrides:
setRootProcessInstanceId
in classHistoryEvent
-
-