【仅供内部供应商使用,不提供对外解答和培训】
{ id: "uuid", //uuid taskName:"", //任务名称 triggerGroup: { triggers: [{ startTime: "2018-01-17 16:05:07", endTime: "", startType: 2, //立即执行(1),选择开始时间(2) endType: 1, //执行完立即结束(1),无期限(2),选择结束时间(3),额外执行(4) triggerType: 1 //立即执行一次(1),简单频率执行(2),日期(3),表达式(4) }, { startTime: "2018-01-17 16:05:07", endTime: "", startType: 2, endType: 4, triggerType: 2, //简单重复执行 repeatCount:2, //endType=4时该字段才有值,额外执行次数 recurrenceInterval: 1, //时间间隔 recurrenceIntervalUnit 1 //时间单位 分钟(1),小时(2),天(3),周(4) }, { startTime: "2018-01-17 16:05:07", endTime: "", startType: 2, endType: 1, triggerType: 3, //明细频率执行 hours: 12, minutes: 12, dayType: 1 , //每天(1),每周(2),每月(3) weekDays:"", monthDays:"", months:"1,2" triggerString:" 每一月,二月的每日的12时12分执行" }, { startTime: "2018-01-17 16:05:07", endTime: "", startType: 2, endType: 1, triggerType: 4, //表达式执行 cronExpression:"0 50 19 ? * 6#4" //表达式 }] }, userGroup: { users: "", userNames: "", department: "", customRole: "", departmentStr: "", customRoleStr: "", userType: 0, platformUser: ["zed","233"], platformUserStr: "" }, taskCondition:{ //任务执行条件 type: 0, //执行类型 0(正常) 1(公式) 2(自定义类) description:"" //描述("" or 公式 or 自定义类名) }, repeatTime:"", //任务中断后重启的频率 repeatTimes:"", //任务中断后重启的频次 startTime:"", //任务开始时间 endTime:"", //任务结束时间 nextFireTime:"" //任务下次执行时间 templatePath:"", //模板路径 showType:"", taskType:"" taskParameter:[ { inputStyle:0, //参数输入方式 默认 name:"", //参数名 type:"", //参数类型 value:"", //参数值 }, { inputStyle:1, //参数输入方式 数据集 name:"", //参数名 type:"", //参数类型 value:"", //数据集 colname:"" //数据集的字段值 } ], fileClearCount: -1 //文件清理类型,不清理-1,结束即清理0,保留1次,保留5次,自定义 scheduleOutput: { id:"" //uuid baseName:"", //结果文件名 createAttachByUsername: true, //是否根据用户组生成附件 formats: [1,2,4,8], outputActionList:[ //文件处理列表 { id:"", actionName:"OutputPlatformMSG", //平台通知 executeByUser:false, //是否按不同用户分别执行 subject: "", //主题 content: "", //内容 linkOpenType: 1 //链接打开方式 0平台内 1无 }, { id:"", actionName:"OutputMount", //挂载操作 executeByUser:false, //是否按不同用户分别执行 folderEntryId:"", //挂载目录 folderEntryName:"", //挂载名称 description:"", //挂载文件描述 } { id:"", actionName:"OutputEmail", //邮件发送 executeByUser:false, //是否按不同用户分别执行 ccAddress: "", //抄送 bccAddress: "", //密送 subject: "", //主题 bodyContent: "", //内容 previewAttach:true, //是否在邮件正文预览 addLink: true, //是否在文末附上结果链接 useAttach: true //是否使用附件 }, { id:"", executeByUser:false, //是否按不同用户分别执行 actionName:"OutputSMS", //短信通知 templateID: 0 //短信模板id }, { id:"", executeByUser:false, //是否按不同用户分别执行 actionName:"OutputFtp", //ftp上传 serverAddress: "", //上传地址 port: "", //上传端口号 savePath: "", //文件保存路径 username: "", //上传用户名 password: "" //上传密码 }, { id"", executeByUser:false, //是否按不同用户分别执行 actionName:"OutputClass", //自定义类处理结果报表 className: "" //类名 }, { id"", executeByUser:false, //是否按不同用户分别执行 actionName:"OutputPrint", //打印 printerName: "" //打印机 }, { id"", executeByUser:false, //是否按不同用户分别执行 actionName:"xxx", //扩展action ... } ] } }