{
    "title": "edit job chain configuration",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.joe.nodeparams.NodeParamsEdit",
    "type": "object",
    "required": [
        "configuration"
    ],
    "extends": {
        "javaType": "com.sos.joc.model.joe.common.JSObjectEdit"
    },
    "properties": {
        "configuration": {
            "javaType": "com.sos.joc.model.joe.nodeparams.Config",
            "type": "object",
            "xmlElement": "settings",
            "javaInterfaces": [
                "com.sos.joc.model.joe.common.IJSObject"
            ],
            "required": [
                "jobChain"
            ],
            "properties": {
                "jobChain": {
                    "type": "object",
                    "javaType": "com.sos.joc.model.joe.nodeparams.ConfigJobChain",
                    "xmlElement": "job_chain",
                    "required": [
                        "name",
                        "order"
                    ],
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "order": {
                            "type": "object",
                            "javaType": "com.sos.joc.model.joe.nodeparams.ConfigOrder",
                            "xmlElement": "order",
                            "properties": {
                                "params": {
                                    "javaType": "com.sos.joc.model.joe.nodeparams.Params",
                                    "type": "object",
                                    "properties": {
                                        "paramList": {
                                            "xmlElement": "param",
                                            "type": "array",
                                            "items": {
                                                "javaType": "com.sos.joc.model.joe.nodeparams.Param",
                                                "type": "object",
                                                "required": [
                                                    "name"
                                                ],
                                                "properties": {
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "value": {
                                                        "description": "parameter value as attribute in xml representation",
                                                        "type": "string"
                                                    },
                                                    "content": {
                                                        "description": "parameter value as cdata in xml representation",
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                },
                                "jobChainNodes": {
                                    "xmlElement": "process",
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "javaType": "com.sos.joc.model.joe.nodeparams.ConfigNode",
                                        "xmlElement": "process",
                                        "properties": {
                                            "state": {
                                                "description": "name of the job chain node",
                                                "type": "string"
                                            },
                                            "params": {
                                                "javaType": "com.sos.joc.model.joe.nodeparams.Params",
                                                "type": "object",
                                                "properties": {
                                                    "paramList": {
                                                        "xmlElement": "param",
                                                        "type": "array",
                                                        "items": {
                                                            "javaType": "com.sos.joc.model.joe.nodeparams.Param",
                                                            "type": "object",
                                                            "required": [
                                                                "name"
                                                            ],
                                                            "properties": {
                                                                "name": {
                                                                    "type": "string"
                                                                },
                                                                "value": {
                                                                    "description": "parameter value as attribute in xml representation",
                                                                    "type": "string"
                                                                },
                                                                "content": {
                                                                    "description": "parameter value as cdata in xml representation",
                                                                    "type": "string"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}