if (jobId != null) {
// activate/suspend job by id
if (getSuspended()) {
managementService.suspendJobById(jobId);
} else {
managementService.activateJobById(jobId);
}
} else
if (jobDefinitionId != null) {
// activate/suspend jobs by job definition id