public class BatchEntity extends Object implements Batch, DbEntity, HasDbReferences, Nameable, HasDbRevision
| Modifier and Type | Field and Description |
|---|---|
static BatchMonitorJobDeclaration |
BATCH_MONITOR_JOB_DECLARATION |
static BatchSeedJobDeclaration |
BATCH_SEED_JOB_DECLARATION |
protected JobDefinitionEntity |
batchJobDefinition |
protected String |
batchJobDefinitionId |
protected BatchJobHandler<?> |
batchJobHandler |
protected int |
batchJobsPerSeed |
protected ByteArrayField |
configuration |
protected String |
createUserId |
protected String |
id |
protected int |
invocationsPerBatchJob |
protected int |
jobsCreated |
protected JobDefinitionEntity |
monitorJobDefinition |
protected String |
monitorJobDefinitionId |
protected int |
revision |
protected JobDefinitionEntity |
seedJobDefinition |
protected String |
seedJobDefinitionId |
protected int |
suspensionState |
protected String |
tenantId |
protected int |
totalJobs |
protected String |
type |
TYPE_BATCH_SET_REMOVAL_TIME, TYPE_DECISION_SET_REMOVAL_TIME, TYPE_HISTORIC_DECISION_INSTANCE_DELETION, TYPE_HISTORIC_PROCESS_INSTANCE_DELETION, TYPE_PROCESS_INSTANCE_DELETION, TYPE_PROCESS_INSTANCE_MIGRATION, TYPE_PROCESS_INSTANCE_MODIFICATION, TYPE_PROCESS_INSTANCE_RESTART, TYPE_PROCESS_INSTANCE_UPDATE_SUSPENSION_STATE, TYPE_PROCESS_SET_REMOVAL_TIME, TYPE_SET_EXTERNAL_TASK_RETRIES, TYPE_SET_JOB_RETRIES, TYPE_SET_VARIABLES| Constructor and Description |
|---|
BatchEntity() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDependentEntitiespublic static final BatchSeedJobDeclaration BATCH_SEED_JOB_DECLARATION
public static final BatchMonitorJobDeclaration BATCH_MONITOR_JOB_DECLARATION
protected String id
protected String type
protected int totalJobs
protected int jobsCreated
protected int batchJobsPerSeed
protected int invocationsPerBatchJob
protected String seedJobDefinitionId
protected String monitorJobDefinitionId
protected String batchJobDefinitionId
protected ByteArrayField configuration
protected String tenantId
protected String createUserId
protected int suspensionState
protected int revision
protected JobDefinitionEntity seedJobDefinition
protected JobDefinitionEntity monitorJobDefinition
protected JobDefinitionEntity batchJobDefinition
protected BatchJobHandler<?> batchJobHandler
public String getId()
public String getType()
public void setType(String type)
public int getTotalJobs()
getTotalJobs in interface Batchpublic void setTotalJobs(int totalJobs)
public int getJobsCreated()
getJobsCreated in interface Batchpublic void setJobsCreated(int jobsCreated)
public int getBatchJobsPerSeed()
getBatchJobsPerSeed in interface Batchpublic void setBatchJobsPerSeed(int batchJobsPerSeed)
public int getInvocationsPerBatchJob()
getInvocationsPerBatchJob in interface Batchpublic void setInvocationsPerBatchJob(int invocationsPerBatchJob)
public String getSeedJobDefinitionId()
getSeedJobDefinitionId in interface Batchpublic void setSeedJobDefinitionId(String seedJobDefinitionId)
public String getMonitorJobDefinitionId()
getMonitorJobDefinitionId in interface Batchpublic void setMonitorJobDefinitionId(String monitorJobDefinitionId)
public String getBatchJobDefinitionId()
getBatchJobDefinitionId in interface Batchpublic void setBatchJobDefinitionId(String batchJobDefinitionId)
public String getTenantId()
getTenantId in interface Batchpublic void setTenantId(String tenantId)
public String getCreateUserId()
getCreateUserId in interface Batchpublic void setCreateUserId(String createUserId)
public String getConfiguration()
public void setConfiguration(String configuration)
public void setSuspensionState(int state)
public int getSuspensionState()
public boolean isSuspended()
BatchIndicates whether this batch is suspended. If a batch is suspended, the batch jobs will not be acquired by the job executor.
Note: It is still possible to manually suspend and activate
jobs and job definitions using the ManagementService, which will
not change the suspension state of the batch.
isSuspended in interface BatchManagementService.suspendBatchById(String),
ManagementService.activateBatchById(String)public void setRevision(int revision)
setRevision in interface HasDbRevisionpublic int getRevision()
getRevision in interface HasDbRevisionpublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic JobDefinitionEntity getSeedJobDefinition()
public JobDefinitionEntity getMonitorJobDefinition()
public JobDefinitionEntity getBatchJobDefinition()
public byte[] getConfigurationBytes()
public void setConfigurationBytes(byte[] configuration)
public BatchJobHandler<?> getBatchJobHandler()
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntitypublic JobDefinitionEntity createSeedJobDefinition(String deploymentId)
public JobDefinitionEntity createMonitorJobDefinition()
public JobDefinitionEntity createBatchJobDefinition()
public JobEntity createSeedJob()
public void deleteSeedJob()
public JobEntity createMonitorJob(boolean setDueDate)
protected Date calculateMonitorJobDueDate()
public void deleteMonitorJob()
public void delete(boolean cascadeToHistory,
boolean deleteJobs)
protected void deleteVariables(CommandContext commandContext)
public void fireHistoricStartEvent()
public void fireHistoricEndEvent()
public boolean isCompleted()
public Set<String> getReferencedEntityIds()
HasDbReferencesScope: IN-MEMORY references
getReferencedEntityIds in interface HasDbReferencespublic Map<String,Class> getReferencedEntitiesIdAndClass()
HasDbReferencesScope: IN-MEMORY references
getReferencedEntitiesIdAndClass in interface HasDbReferencesCopyright © 2022. All rights reserved.