org.camunda.bpm.engine.impl.history.event
Class HistoricExternalTaskLogEntity

java.lang.Object
  extended by org.camunda.bpm.engine.impl.history.event.HistoryEvent
      extended by org.camunda.bpm.engine.impl.history.event.HistoricExternalTaskLogEntity
All Implemented Interfaces:
Serializable, HistoricExternalTaskLog, DbEntity

public class HistoricExternalTaskLogEntity
extends HistoryEvent
implements HistoricExternalTaskLog

See Also:
Serialized Form

Field Summary
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, 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
HistoricExternalTaskLogEntity()
           
 
Method Summary
 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 when this log entry was created.
 Integer getRetries()
          Returns the retries of the associated external task before the associated external task has been executed and when this log occurred.
 int getState()
           
 String getTenantId()
          Returns the id of the tenant this external task log entry belongs to.
 Date getTimestamp()
          Returns the time when this 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()
          Returns true when this log represents the creation of the associated external task.
 boolean isDeletionLog()
          Returns true when this log represents the deletion of the associated external task.
 boolean isFailureLog()
          Returns true when this log represents the failed execution of the associated external task.
 boolean isSuccessLog()
          Returns true when this 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 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, getSequenceCounter, isEventOfType, setCaseDefinitionId, setCaseDefinitionKey, setCaseDefinitionName, setCaseExecutionId, setCaseInstanceId, setEventType, setExecutionId, setId, setProcessDefinitionId, setProcessDefinitionKey, setProcessDefinitionName, setProcessDefinitionVersion, setProcessInstanceId, 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
 

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
Constructor Detail

HistoricExternalTaskLogEntity

public HistoricExternalTaskLogEntity()
Method Detail

getTimestamp

public Date getTimestamp()
Description copied from interface: HistoricExternalTaskLog
Returns the time when this log occurred.

Specified by:
getTimestamp in interface HistoricExternalTaskLog

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 interface HistoricExternalTaskLog

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 interface HistoricExternalTaskLog

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 interface HistoricExternalTaskLog

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 when this log occurred.

Specified by:
getRetries in interface HistoricExternalTaskLog

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, use HistoryService.getHistoricExternalTaskLogErrorDetails(String)

Specified by:
getErrorMessage in interface HistoricExternalTaskLog

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 interface HistoricExternalTaskLog

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 interface HistoricExternalTaskLog

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 be null if the external task log entry belongs to no single tenant.

Specified by:
getTenantId in interface HistoricExternalTaskLog

setTenantId

public void setTenantId(String tenantId)

getPriority

public long getPriority()
Description copied from interface: HistoricExternalTaskLog
Returns the priority of the associated external task when this log entry was created.

Specified by:
getPriority in interface HistoricExternalTaskLog

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
Returns true when this log represents the creation of the associated external task.

Specified by:
isCreationLog in interface HistoricExternalTaskLog

isFailureLog

public boolean isFailureLog()
Description copied from interface: HistoricExternalTaskLog
Returns true when this log represents the failed execution of the associated external task.

Specified by:
isFailureLog in interface HistoricExternalTaskLog

isSuccessLog

public boolean isSuccessLog()
Description copied from interface: HistoricExternalTaskLog
Returns true when this log represents the successful execution of the associated external task.

Specified by:
isSuccessLog in interface HistoricExternalTaskLog

isDeletionLog

public boolean isDeletionLog()
Description copied from interface: HistoricExternalTaskLog
Returns true when this log represents the deletion of the associated external task.

Specified by:
isDeletionLog in interface HistoricExternalTaskLog


Copyright © 2017 camunda services GmbH. All rights reserved.