{
    "title": "resume orders",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.ResumeOrders",
    "type": "object",
    "extends": {
        "javaType": "com.sos.joc.model.order.ModifyOrdersBase",
        "type": "object",
        "required": [
            "controllerId"
        ],
        "properties": {
            "controllerId": {
                "type": "string",
                "pattern": "^[^/\\<>?:\"|*]*$",
                "maxLength": 100,
                "minLength": 1
            },
            "orderIds": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            },
            "workflowIds": {
                "type": "array",
                "items": {
                    "javaType": "com.sos.controller.model.workflow.WorkflowId",
                    "type": "object",
                    "required": [
                        "path"
                    ],
                    "properties": {
                        "path": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "versionId": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        }
                    },
                    "additionalProperties": false
                }
            },
            "states": {
                "type": "array",
                "items": {
                    "javaType": "com.sos.joc.model.order.OrderStateText",
                    "type": "string",
                    "enum": [
                        "PLANNED",
                        "PENDING",
                        "SCHEDULED",
                        "RUNNING",
                        "INPROGRESS",
                        "PROMPTING",
                        "SUSPENDED",
                        "FAILED",
                        "WAITING",
                        "BLOCKED",
                        "CANCELLED",
                        "FINISHED",
                        "BROKEN",
                        "UNKNOWN"
                    ]
                }
            },
            "folders": {
                "type": "array",
                "items": {
                    "type": "object",
                    "javaType": "com.sos.joc.model.common.Folder",
                    "required": [
                        "folder"
                    ],
                    "properties": {
                        "folder": {
                            "description": "absolute path of an object.",
                            "type": "string",
                            "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "recursive": {
                            "type": "boolean",
                            "default": true
                        }
                    },
                    "additionalProperties": false
                }
            },
            "auditLog": {
                "javaType": "com.sos.joc.model.audit.AuditParams",
                "type": "object",
                "properties": {
                    "comment": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "timeSpent": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "ticketLink": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    }
                }
            }
        },
        "additionalProperties": false
    },
    "required": [
        "controllerId"
    ],
    "properties": {
        "force": {
            "description": "force execution of non-startable jobs after kill",
            "type": "boolean",
            "default": false
        },
        "fromCurrentBlock": {
            "type": "boolean",
            "default": false
        },
        "position": {
            "anyOf": [
                {
                    "description": "Actually, each even item is a string, each odd item is an integer",
                    "type": "array",
                    "minItems": 1,
                    "items": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            }
                        ]
                    }
                },
                {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255,
                    "minLength": 1
                }
            ]
        },
        "variables": {
            "description": "a map for arbitrary key-value pairs",
            "javaType": "com.sos.inventory.model.common.Variables",
            "type": "object",
            "additionalProperties": true
        },
        "cycleEndTime": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        }
    },
    "additionalProperties": false
}