• 创建一个周期性定时任务,新建的任务模式是处于激活状态

    在开启安全配置情况下,需要 '管理定时任务' 权限

    Parameters

    Returns string

    id of new created task plan

    Example

    import * as tp from 'taskplan'
    let id = tp.createMultiTimeTask({
    name: "taskName",
    assetName: "scriptName",
    firstScheduleDate: "2019-09-10 00:00:00",
    scheduleInterval: 1,
    intervalUnit: tp.IntervalUnit.Minute,
    taskType: tp.TaskType.Script,
    inputs: {
    foo: {
    bar: "xxxxxx"
    }
    }
    })