} else
if (processDefinitionKey != null) {
// activate/suspend jobs by process definition key
if (getSuspended()) {
managementService.suspendJobByProcessDefinitionKey(processDefinitionKey);
} else {
managementService.activateJobByProcessDefinitionKey(processDefinitionKey);
}
} else {
String message = "Either jobId, jobDefinitionId, processInstanceId, processDefinitionId or processDefinitionKey should be set to update the suspension state.";