public abstract class AbstractSetJobDefinitionStateCmd extends Object implements Command<Void>
Modifier and Type | Field and Description |
---|---|
protected Date |
executionDate |
protected boolean |
includeJobs |
protected String |
jobDefinitionId |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
Constructor and Description |
---|
AbstractSetJobDefinitionStateCmd(String jobDefinitionId,
String processDefinitionId,
String processDefinitionKey,
boolean includeJobs,
Date executionDate) |
Modifier and Type | Method and Description |
---|---|
Void |
execute(CommandContext commandContext) |
protected abstract String |
getDelayedExecutionJobHandlerType()
Subclasses should return the type of the
JobHandler here. |
protected abstract AbstractSetJobStateCmd |
getSetJobStateCmd()
Subclasses should return the type of the
AbstractSetJobStateCmd here. |
protected abstract SuspensionState |
getSuspensionState()
Subclasses should return the wanted
SuspensionState here. |
protected String jobDefinitionId
protected String processDefinitionId
protected String processDefinitionKey
protected boolean includeJobs
protected Date executionDate
public Void execute(CommandContext commandContext)
protected abstract SuspensionState getSuspensionState()
SuspensionState
here.protected abstract String getDelayedExecutionJobHandlerType()
JobHandler
here. it will be used when
the user provides an execution date on which the actual state change will happen.protected abstract AbstractSetJobStateCmd getSetJobStateCmd()
AbstractSetJobStateCmd
here.
It will be used to suspend or activate the Job
s.Copyright © 2015. All rights reserved.