public abstract class JobDeclaration<T extends JobEntity> extends Object implements Serializable
A job declaration is associated with an activity in the process definition graph. It provides data about Jobs which are to be created when executing this activity. It also acts as a factory for new Job Instances.
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
protected boolean |
exclusive |
protected String |
jobConfiguration |
protected String |
jobDefinitionId
the id of the associated persistent jobDefinitionId
|
protected String |
jobHandlerConfiguration |
protected String |
jobHandlerType |
protected int |
retries |
Constructor and Description |
---|
JobDeclaration(String jobHandlerType) |
Modifier and Type | Method and Description |
---|---|
T |
createJobInstance(ExecutionEntity execution) |
String |
getActivityId() |
String |
getJobConfiguration() |
String |
getJobDefinitionId() |
String |
getJobHandlerConfiguration() |
String |
getJobHandlerType() |
int |
getRetries() |
boolean |
isExclusive() |
protected abstract T |
newJobInstance(ExecutionEntity execution) |
void |
setActivityId(String activityId) |
void |
setExclusive(boolean exclusive) |
void |
setJobConfiguration(String jobConfiguration) |
void |
setJobDefinitionId(String jobDefinitionId) |
void |
setJobHandlerConfiguration(String jobHandlerConfiguration) |
void |
setJobHandlerType(String jobHandlerType) |
void |
setRetries(int retries) |
protected String jobDefinitionId
protected String jobHandlerType
protected String jobHandlerConfiguration
protected String jobConfiguration
protected boolean exclusive
protected int retries
protected String activityId
public JobDeclaration(String jobHandlerType)
public T createJobInstance(ExecutionEntity execution)
execution
- can be null in case of a timer start event.protected abstract T newJobInstance(ExecutionEntity execution)
public String getJobDefinitionId()
public void setJobDefinitionId(String jobDefinitionId)
public String getJobHandlerType()
public String getJobHandlerConfiguration()
public void setJobHandlerConfiguration(String jobHandlerConfiguration)
public boolean isExclusive()
public void setExclusive(boolean exclusive)
public int getRetries()
public void setRetries(int retries)
public void setJobHandlerType(String jobHandlerType)
public String getActivityId()
public void setActivityId(String activityId)
public String getJobConfiguration()
public void setJobConfiguration(String jobConfiguration)
Copyright © 2015. All rights reserved.