isc.DataSource.create({
    allowAdvancedCriteria:true,
    ID:"QuartzTriggers",
    fields:[
        {
            name:"jobGroup",
            showIf:"false",
            type:"string",
            required:true
        },
        {
            name:"jobName",
            showIf:"false",
            type:"string",
            required:true
        },
        {
            primaryKey:true,
            name:"group",
            type:"string",
            required:true
        },
        {
            primaryKey:true,
            name:"name",
            type:"string",
            required:true
        },
        {
            name:"description",
            type:"string"
        },
        {
            name:"dataMap",
            showIf:"false",
            type:"Object"
        },
        {
            name:"startTime",
            type:"date"
        },
        {
            name:"endTime",
            type:"date"
        },
        {
            name:"cronExpression",
            type:"text",
            required:true
        },
        {
            name:"timeZone",
            type:"text"
        },
        {
            name:"volatility",
            type:"boolean",
            defaultValue:"false"
        },
        {
            valueMap:{
                "0":"MISFIRE_INSTRUCTION_SMART_POLICY",
                "1":"MISFIRE_INSTRUCTION_FIRE_ONCE_NOW",
                "2":"MISFIRE_INSTRUCTION_DO_NOTHING"
            },
            name:"misfireInstruction",
            type:"intEnum",
            defaultValue:"0"
        },
        {
            valueMap:{
                "0":"Normal",
                "1":"Paused",
                "2":"Complete",
                "3":"Error",
                "4":"Blocked",
                "-1":"None"
            },
            name:"state",
            type:"intEnum",
            canEdit:false
        }
    ]
})
