return null;
}
private void updateSuspensionState(CommandContext commandContext) {
JobDefinitionManager jobDefinitionManager = commandContext.getJobDefinitionManager();
JobManager jobManager = commandContext.getJobManager();
SuspensionState suspensionState = getSuspensionState();
if (jobDefinitionId != null) {
jobDefinitionManager.updateJobDefinitionSuspensionStateById(jobDefinitionId, suspensionState);
} else
if (processDefinitionId != null) {
jobDefinitionManager.updateJobDefinitionSuspensionStateByProcessDefinitionId(processDefinitionId, suspensionState);
jobManager.updateStartTimerJobSuspensionStateByProcessDefinitionId(processDefinitionId, suspensionState);
} else
if (processDefinitionKey != null) {
jobDefinitionManager.updateJobDefinitionSuspensionStateByProcessDefinitionKey(processDefinitionKey, suspensionState);
jobManager.updateStartTimerJobSuspensionStateByProcessDefinitionKey(processDefinitionKey, suspensionState);
}
if (includeJobs) {
getSetJobStateCmd().execute(commandContext);