{
    "title": "AddOrder",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.inventory.model.instruction.AddOrder",
    "type": "object",
    "required": [
        "workflowName"
    ],
    "extends": {
        "javaType": "com.sos.inventory.model.instruction.Instruction",
        "type": "object",
        "required": [
            "TYPE"
        ],
        "properties": {
            "TYPE": {
                "javaType": "com.sos.inventory.model.instruction.InstructionType",
                "type": "string",
                "enum": [
                    "Execute.Named",
                    "If",
                    "Try",
                    "Fork",
                    "ForkList",
                    "Finish",
                    "Fail",
                    "Retry",
                    "Lock",
                    "Prompt",
                    "PostNotice",
                    "PostNotices",
                    "ExpectNotice",
                    "ExpectNotices",
                    "ConsumeNotices",
                    "ImplicitEnd",
                    "AddOrder",
                    "Cycle",
                    "StickySubagent",
                    "Options",
                    "Break"
                ]
            },
            "position": {
                "description": "Actually, each even item is a string, each odd item is an integer",
                "type": "array",
                "minItems": 1,
                "items": {
                    "anyOf": [
                        {
                            "type": "integer"
                        },
                        {
                            "type": "string"
                        }
                    ]
                }
            },
            "positionString": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            },
            "label": {
                "type": "string",
                "pattern": "^[^<>]*$",
                "maxLength": 255
            },
            "state": {
                "javaType": "com.sos.inventory.model.instruction.InstructionState",
                "type": "object",
                "required": [
                    "severity",
                    "_text"
                ],
                "properties": {
                    "severity": {
                        "type": "integer"
                    },
                    "_text": {
                        "javaType": "com.sos.inventory.model.instruction.InstructionStateText",
                        "type": "string",
                        "enum": [
                            "SKIPPED",
                            "STOPPED",
                            "STOPPED_AND_SKIPPED"
                        ]
                    }
                },
                "additionalProperties": false
            }
        },
        "additionalProperties": false
    },
    "description": "instruction with fixed property 'TYPE':'AddOrder'",
    "propertyOrder": [
        "TYPE",
        "workflowName"
    ],
    "properties": {
        "workflowName": {
            "alias": "workflowPath",
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "arguments": {
            "description": "a map for arbitrary key-value pairs",
            "javaType": "com.sos.inventory.model.common.Variables",
            "type": "object",
            "additionalProperties": true
        },
        "remainWhenTerminated": {
            "type": "boolean",
            "default": false
        },
        "startPosition": {
            "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
                }
            ]
        },
        "endPositions": {
            "type": "array",
            "items": {
                "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
                    }
                ]
            }
        }
    },
    "additionalProperties": false
}