{"TASK_ID":"003Z40LW6NEUF","TASK_NAME":"示例任务 1","INTERVAL_TYPE":0,"INTERVAL_EXPRESS":"5","CLASS_NAME":null,"SERVER_SCRIPT":"java.lang.System.out.println(\n  DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': 示例任务 1');","BEGIN_DATE":null,"END_DATE":null,"STATUS":0,"REMARK":"每 5 秒在系统控制台显示\u201c示例任务 1\u201d。"}
{"TASK_ID":"003Z40YABFUU3","TASK_NAME":"示例任务 2","INTERVAL_TYPE":1,"INTERVAL_EXPRESS":"1","CLASS_NAME":null,"SERVER_SCRIPT":"java.lang.System.out.println(\n  DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': 示例任务 2');","BEGIN_DATE":"2018-01-22 14:46:02.0","END_DATE":"2018-01-22 14:48:00.0","STATUS":0,"REMARK":"指定时间段在系统控制台显示\u201c示例任务 2\u201d。"}
{"TASK_ID":"003Z40YABFV3G","TASK_NAME":"示例任务 3","INTERVAL_TYPE":2,"INTERVAL_EXPRESS":"1","CLASS_NAME":"com.wb.task.DemoTask","SERVER_SCRIPT":null,"BEGIN_DATE":null,"END_DATE":null,"STATUS":0,"REMARK":"每小时调用Java后台任务接口，在系统控制台显示\u201c示例任务 3\u201d。"}
{"TASK_ID":"003Z40YABFV4H","TASK_NAME":"示例任务 4","INTERVAL_TYPE":3,"INTERVAL_EXPRESS":"01:30","CLASS_NAME":null,"SERVER_SCRIPT":"//对于特殊周期的任务，比如每个月最后一个星期一或某个节日执行的任务，\n//可设置周期为日，并使用代码判断是否符合周期，如果不符合则返回。\njava.lang.System.out.println(\n  DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': 示例任务 4');","BEGIN_DATE":null,"END_DATE":null,"STATUS":0,"REMARK":"每日 01:30 在系统控制台显示 \u201c示例任务 4\u201d。"}
{"TASK_ID":"003Z40YABFV70","TASK_NAME":"示例任务 5","INTERVAL_TYPE":4,"INTERVAL_EXPRESS":"3:20:30","CLASS_NAME":null,"SERVER_SCRIPT":"java.lang.System.out.println(\n  DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': 示例任务 5');","BEGIN_DATE":null,"END_DATE":null,"STATUS":0,"REMARK":"每周二 20:30 在系统控制台显示 \u201c示例任务 5\u201d。"}
{"TASK_ID":"003Z40YABFV9X","TASK_NAME":"示例任务 6","INTERVAL_TYPE":5,"INTERVAL_EXPRESS":"2:01:00","CLASS_NAME":null,"SERVER_SCRIPT":"java.lang.System.out.println(\n  DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': 示例任务 6');","BEGIN_DATE":null,"END_DATE":null,"STATUS":0,"REMARK":"每月 2 日 01:00 在系统控制台显示 \u201c示例任务 6\u201d。"}
{"TASK_ID":"003Z40YABFVA6","TASK_NAME":"示例任务 7","INTERVAL_TYPE":5,"INTERVAL_EXPRESS":"-1:01:00","CLASS_NAME":null,"SERVER_SCRIPT":"java.lang.System.out.println(\n  DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': 示例任务 7');","BEGIN_DATE":null,"END_DATE":null,"STATUS":0,"REMARK":"每月最后一天 01:00 在系统控制台显示\u201c示例任务 7\u201d。"}
{"TASK_ID":"003Z40YABFVB0","TASK_NAME":"示例任务 8","INTERVAL_TYPE":2,"INTERVAL_EXPRESS":"1","CLASS_NAME":null,"SERVER_SCRIPT":"java.lang.System.out.println(\n  DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': 示例任务 8');","BEGIN_DATE":"2018-01-22 16:29:00.0","END_DATE":"2018-01-22 16:29:00.0","STATUS":0,"REMARK":"在 2016-01-22 16:28:00 执行 1 次计划任务。"}
{"TASK_ID":"003Z421KZEPEA","TASK_NAME":"示例任务 9","INTERVAL_TYPE":0,"INTERVAL_EXPRESS":"1","CLASS_NAME":null,"SERVER_SCRIPT":"var varKey = 'task.demoJob9.running'; //用于标识任务状态变量\nif (Wb.parseBool(Base.map.get(varKey))) {\n  //如果上次任务仍未完成，忽略本次任务。\n  return;\n}\nBase.map.put(varKey, true);\ntry {\n  //任务执行耗时5秒，模拟超过每秒1次的周期。\n  java.lang.Thread.sleep(5000);\n  java.lang.System.out.println(\n    DateUtil.format(new JavaDate(), 'hh:mm:ss') + ': ' +\n    jobContext.getJobDetail().getDescription());\n} finally {\n  Base.map.put(varKey, false);\n}","BEGIN_DATE":null,"END_DATE":null,"STATUS":0,"REMARK":"如果上次任务仍未完成，忽略本次任务。"}