{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/sharptree/vscode-autoscript-deploy/main/schemas/crontask.json", "title": "Cron Task", "description": "A Maximo Cron Task", "type": "object", "properties": { "delete":{ "description":"Flag to indicate that the cron task should be deleted if it exists from the target system.", "type":"boolean", "default":false }, "cronTaskName": { "description": "The name of the Cron Task (CRONTASKDEF.CRONTASKNAME)", "type": "string" }, "description": { "description": "The description of the Cron Task (CRONTASKDEF.DESCRIPTION)", "type": "string" }, "className": { "description": "The Java class name of the Cron Task implementation (CRONTASKDEF.CLASSNAME)", "type": "string" }, "accessLevel": { "description": "The access level for the Maximo Cron Task (CRONTASKDEF.ACCESSLEVEL)", "type": "string", "enum": ["FULL", "MODIFYONLY", "READONLY"], "default": "FULL" }, "cronTaskInstance": { "description": "An array of Maximo Cron Task instance definitions", "type": "array", "items": { "type": "object", "properties": { "instanceName": { "description": "The name of the Cron Task instance (CRONTASKINSTANCE.INSTANCENAME)", "type": "string" }, "description": { "description": "The description of the Cron Task instance (CRONTASKINSTANCE.DESCRIPTION)", "type": "string" }, "schedule": { "description": "The schedule of the Cron Task instance in Unix cron task format (CRONTASKINSTANCE.SCHEDULE)", "type": "string", "default": "1h,*,0,*,*,*,*,*,*,*" }, "active": { "description": "Flag to indicate if the Cron Task instance is active or not (CRONTASKINSTANCE.ACTIVE)", "type": "boolean", "default": "false" }, "keepHistory": { "description": "Flag to indicate if the Cron Task instance will retain a history of runs or not (CRONTASKINSTANCE.RETAINHISTORY)", "type": "boolean", "default": "true" }, "runAsUserId": { "description": "The user Id that will be used to run the Cron Task instance, must be a valid Maximo user Id (CRONTASKINSTANCE.RUNASUSERID)", "type": "string", "default": "MAXADMIN" }, "maxHistory": { "description": "The maximum number of history records to retain (CRONTASKINSTANCE.MAXHISTORY)", "type": "integer", "default": "1000" }, "cronTaskParam": { "description": "An array of parameter values for the Cron Task instance.", "type": "array", "items": { "type": "object", "properties": { "parameter": { "description": "The name of the Cron Task parameter. The parameters are automatically added by the class and the name is matched after the parameters are added (CRONTASKPARAM.PARAMETER)", "type": "string" }, "value": { "description": "The value of the Cron Task parameter (CRONTASKPARAM.VALUE)", "type": "string" }, "required": "parameter" } } }, "required": ["instanceName"] } } }, "required": ["cronTaskName", "className"] } }