public class JobDefinitionEntity extends Object implements JobDefinition, HasDbRevision, DbEntity, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
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 |
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 |
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() |
int |
getRevision() |
int |
getRevisionNext() |
int |
getSuspensionState() |
boolean |
isSuspended()
Indicates whether this job definition is suspended.
|
void |
setActivityId(String activityId) |
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) |
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
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)
Copyright © 2018. All rights reserved.