public class JobDefinitionEntity extends Object implements JobDefinition, HasDbRevision, HasDbReferences, DbEntity, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
protected String |
deploymentId |
protected String |
id |
protected String |
jobConfiguration |
protected Long |
jobPriority |
protected String |
jobType
timer, message, ...
|
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected int |
revision |
protected int |
suspensionState |
protected String |
tenantId |
Constructor and Description |
---|
JobDefinitionEntity() |
JobDefinitionEntity(JobDeclaration<?,?> jobDeclaration) |
Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
The Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.
|
String |
getDeploymentId()
The id of the deployment this job definition is related to.
|
String |
getId() |
String |
getJobConfiguration()
The configuration of a job definition provides details about the jobs which will be created.
|
String |
getJobType()
The Type of a job.
|
Long |
getOverridingJobPriority()
Returns the execution priority for jobs of this definition, if it was set using the
ManagementService API. |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
Map<String,Class> |
getReferencedEntitiesIdAndClass()
Scope: IN-MEMORY references
|
Set<String> |
getReferencedEntityIds()
Scope: IN-MEMORY references
|
int |
getRevision() |
int |
getRevisionNext() |
int |
getSuspensionState() |
String |
getTenantId()
The id of the tenant this job definition belongs to.
|
boolean |
isSuspended()
Indicates whether this job definition is suspended.
|
void |
setActivityId(String activityId) |
void |
setDeploymentId(String deploymentId) |
void |
setId(String id) |
void |
setJobConfiguration(String jobConfiguration) |
void |
setJobPriority(Long jobPriority) |
void |
setJobType(String jobType) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessDefinitionKey(String processDefinitionKey) |
void |
setRevision(int revision) |
void |
setSuspensionState(int state) |
void |
setTenantId(String tenantId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependentEntities
protected String id
protected int revision
protected String processDefinitionId
protected String processDefinitionKey
protected String activityId
protected String jobType
protected String jobConfiguration
protected int suspensionState
protected Long jobPriority
protected String tenantId
protected String deploymentId
public JobDefinitionEntity()
public JobDefinitionEntity(JobDeclaration<?,?> jobDeclaration)
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getId()
getId
in interface DbEntity
getId
in interface JobDefinition
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public boolean isSuspended()
JobDefinition
isSuspended
in interface JobDefinition
public String getProcessDefinitionId()
getProcessDefinitionId
in interface JobDefinition
ProcessDefinition
this job definition is associated with.public void setProcessDefinitionId(String processDefinitionId)
public String getActivityId()
JobDefinition
getActivityId
in interface JobDefinition
public void setActivityId(String activityId)
public String getJobType()
JobDefinition
getJobType
in interface JobDefinition
public void setJobType(String jobType)
public String getJobConfiguration()
JobDefinition
getJobConfiguration
in interface JobDefinition
public void setJobConfiguration(String jobConfiguration)
public String getProcessDefinitionKey()
getProcessDefinitionKey
in interface JobDefinition
ProcessDefinition
this job definition is associated with.public void setProcessDefinitionKey(String processDefinitionKey)
public int getSuspensionState()
public void setSuspensionState(int state)
public Long getOverridingJobPriority()
JobDefinition
Returns the execution priority for jobs of this definition, if it was set using the
ManagementService
API. When a job is assigned a priority, the job definition's overriding
priority (if set) is used instead of the values defined in the BPMN XML.
getOverridingJobPriority
in interface JobDefinition
null
if
no overriding priority is setpublic void setJobPriority(Long jobPriority)
public String getTenantId()
JobDefinition
null
if the definition belongs to no single tenant.getTenantId
in interface JobDefinition
public void setTenantId(String tenantId)
public String getDeploymentId()
JobDefinition
getDeploymentId
in interface JobDefinition
public void setDeploymentId(String deploymentId)
public Set<String> getReferencedEntityIds()
HasDbReferences
Scope: IN-MEMORY references
getReferencedEntityIds
in interface HasDbReferences
public Map<String,Class> getReferencedEntitiesIdAndClass()
HasDbReferences
Scope: IN-MEMORY references
getReferencedEntitiesIdAndClass
in interface HasDbReferences
Copyright © 2021. All rights reserved.