public abstract class AbstractJobEntity extends Object implements Job, PersistentObject, HasRevision, BulkDeleteable, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
category |
protected Date |
createTime |
protected ByteArrayRef |
customValuesByteArrayRef |
static boolean |
DEFAULT_EXCLUSIVE |
static int |
DEFAULT_RETRIES |
protected Date |
duedate |
protected String |
elementId |
protected String |
elementName |
protected Date |
endDate |
protected ByteArrayRef |
exceptionByteArrayRef |
protected String |
exceptionMessage |
protected String |
executionId |
protected String |
id |
protected boolean |
isExclusive |
protected String |
jobHandlerConfiguration |
protected String |
jobHandlerType |
protected String |
jobType |
protected int |
maxIterations |
protected String |
processDefinitionId |
protected String |
processInstanceId |
protected String |
repeat |
protected int |
retries |
protected int |
revision |
protected String |
scopeDefinitionId |
protected String |
scopeId |
protected String |
scopeType |
protected String |
subScopeId |
protected String |
tenantId |
JOB_TYPE_EXTERNAL_WORKER, JOB_TYPE_MESSAGE, JOB_TYPE_TIMER| Constructor and Description |
|---|
AbstractJobEntity() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Get the category for this job.
|
String |
getCorrelationId()
Returns the correlation id of a job.
|
Date |
getCreateTime()
Returns the create datetime of the job.
|
String |
getCustomValues()
Get the custom values.
|
Date |
getDuedate()
Returns the date on which this job is supposed to be processed.
|
String |
getElementId()
Reference to an element identifier or null if none is set.
|
String |
getElementName()
Reference to an element name or null if none is set.
|
Date |
getEndDate() |
String |
getExceptionMessage()
Returns the message of the exception that occurred, the last time the job was executed.
|
String |
getExceptionStacktrace() |
String |
getExecutionId()
Returns the specific execution on which the job was created.
|
String |
getId()
Returns the unique identifier for this job.
|
String |
getJobHandlerConfiguration()
Get the job handler configuration.
|
String |
getJobHandlerType()
Get the job handler type.
|
String |
getJobType()
Get the job type for this job.
|
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database.
|
String |
getProcessDefinitionId()
Returns the specific process definition on which the job was created
|
String |
getProcessInstanceId()
x
Returns the id of the process instance which execution created the job.
|
String |
getRepeat() |
int |
getRetries()
Returns the number of retries this job has left.
|
int |
getRevision() |
int |
getRevisionNext() |
String |
getScopeDefinitionId()
Reference to a scope definition identifier or null if none is set.
|
String |
getScopeId()
Reference to a scope identifier or null if none is set.
|
String |
getScopeType()
Reference to a scope type or null if none is set.
|
String |
getSubScopeId()
Reference to a sub scope identifier or null if none is set.
|
String |
getTenantId()
Get the tenant identifier for this job.
|
boolean |
isExclusive()
Is the job exclusive?
|
void |
setCategory(String category) |
void |
setCreateTime(Date createTime) |
void |
setCustomValues(String customValues) |
void |
setDuedate(Date duedate) |
void |
setElementId(String elementId) |
void |
setElementName(String elementName) |
void |
setEndDate(Date endDate) |
void |
setExceptionMessage(String exceptionMessage) |
void |
setExceptionStacktrace(String exception) |
void |
setExclusive(boolean isExclusive) |
void |
setExecution(ExecutionEntity execution) |
void |
setExecutionId(String executionId) |
void |
setId(String id) |
void |
setJobHandlerConfiguration(String jobHandlerConfiguration) |
void |
setJobHandlerType(String jobHandlerType) |
void |
setJobType(String jobType) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setRepeat(String repeat) |
void |
setRetries(int retries) |
void |
setRevision(int revision) |
void |
setScopeDefinitionId(String scopeDefinitionId) |
void |
setScopeId(String scopeId) |
void |
setScopeType(String scopeType) |
void |
setSubScopeId(String subScopeId) |
void |
setTenantId(String tenantId) |
public static final boolean DEFAULT_EXCLUSIVE
public static final int DEFAULT_RETRIES
protected String id
protected int revision
protected Date duedate
protected Date createTime
protected String executionId
protected String processInstanceId
protected String processDefinitionId
protected String category
protected String jobType
protected String elementId
protected String elementName
protected String scopeId
protected String subScopeId
protected String scopeType
protected String scopeDefinitionId
protected boolean isExclusive
protected int retries
protected String jobHandlerType
protected String jobHandlerConfiguration
protected int maxIterations
protected String repeat
protected Date endDate
protected final ByteArrayRef exceptionByteArrayRef
protected final ByteArrayRef customValuesByteArrayRef
protected String exceptionMessage
protected String tenantId
public void setExecution(ExecutionEntity execution)
public String getExceptionStacktrace()
public void setExceptionStacktrace(String exception)
public String getCustomValues()
JobInfogetCustomValues in interface JobInfopublic void setCustomValues(String customValues)
public Object getPersistentState()
PersistentObjectgetPersistentState in interface PersistentObjectpublic int getRevisionNext()
getRevisionNext in interface HasRevisionpublic String getId()
JobInfogetId in interface PersistentObjectgetId in interface JobInfopublic void setId(String id)
setId in interface PersistentObjectpublic int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionpublic Date getDuedate()
JobgetDuedate in interface Jobpublic void setDuedate(Date duedate)
public Date getCreateTime()
JobgetCreateTime in interface Jobpublic void setCreateTime(Date createTime)
public String getExecutionId()
JobgetExecutionId in interface Jobpublic void setExecutionId(String executionId)
public int getRetries()
JobInfogetRetries in interface JobInfopublic void setRetries(int retries)
public String getProcessInstanceId()
JobgetProcessInstanceId in interface Jobpublic void setProcessInstanceId(String processInstanceId)
public boolean isExclusive()
JobisExclusive in interface Jobpublic void setExclusive(boolean isExclusive)
public String getProcessDefinitionId()
JobgetProcessDefinitionId in interface Jobpublic void setProcessDefinitionId(String processDefinitionId)
public String getCategory()
JobgetCategory in interface Jobpublic void setCategory(String category)
public String getJobType()
JobgetJobType in interface Jobpublic void setJobType(String jobType)
public String getElementId()
JobgetElementId in interface Jobpublic void setElementId(String elementId)
public String getElementName()
JobgetElementName in interface Jobpublic void setElementName(String elementName)
public String getScopeId()
JobgetScopeId in interface Jobpublic void setScopeId(String scopeId)
public String getSubScopeId()
JobgetSubScopeId in interface Jobpublic void setSubScopeId(String subScopeId)
public String getScopeType()
JobgetScopeType in interface Jobpublic void setScopeType(String scopeType)
public String getScopeDefinitionId()
JobgetScopeDefinitionId in interface Jobpublic void setScopeDefinitionId(String scopeDefinitionId)
public String getJobHandlerType()
JobInfogetJobHandlerType in interface JobInfopublic void setJobHandlerType(String jobHandlerType)
public String getJobHandlerConfiguration()
JobInfogetJobHandlerConfiguration in interface JobInfopublic void setJobHandlerConfiguration(String jobHandlerConfiguration)
public String getRepeat()
public void setRepeat(String repeat)
public Date getEndDate()
public void setEndDate(Date endDate)
public String getExceptionMessage()
JobInfogetExceptionMessage in interface JobInfopublic void setExceptionMessage(String exceptionMessage)
public String getTenantId()
JobInfogetTenantId in interface JobInfopublic void setTenantId(String tenantId)
public String getCorrelationId()
JobgetCorrelationId in interface JobCopyright © 2023 Flowable. All rights reserved.