ProcessEngine processEngine = getProcessEngine(userId);
ScheduleService scheduleService = processEngine.getScheduleService();
String jobKeyName = StringUtil.getString(params.get("jobKeyName"));
String jobKeyGroup = StringUtil.getString(params.get("jobKeyGroup"));
try{
scheduleService.suspendJob(jobKeyName, jobKeyGroup);
}finally{
closeProcessEngine();
}
}