{
    "title": "forkList",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.sign.model.instruction.ForkList",
    "type": "object",
    "required": [
        "children",
        "workflow"
    ],
    "extends": {
        "javaType": "com.sos.sign.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",
                    "CaseWhen",
                    "Sleep"
                ]
            },
            "label": {
                "type": "string"
            }
        },
        "additionalProperties": false
    },
    "description": "instruction with fixed property 'TYPE':'ForkList'",
    "properties": {
        "children": {
            "type": "string"
        },
        "childToArguments": {
            "type": "string"
        },
        "childToId": {
            "type": "string"
        },
        "agentPath": {
            "alias": "agentId,agentName",
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "workflow": {
            "type": "object",
            "javaType": "com.sos.sign.model.workflow.BranchWorkflow",
            "required": [
                "instructions"
            ],
            "properties": {
                "instructions": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                        "javaType": "com.sos.sign.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"
                                ]
                            }
                        },
                        "additionalProperties": false
                    }
                },
                "result": {
                    "description": "a map for arbitrary key-value pairs",
                    "javaType": "com.sos.inventory.model.job.Environment",
                    "type": "object",
                    "additionalProperties": {
                        "type": "string"
                    }
                }
            },
            "additionalProperties": false
        },
        "joinIfFailed": {
            "type": "boolean",
            "default": false
        }
    },
    "additionalProperties": false
}