{
    "title": "In-Condition",
    "id": "schemas/jobstreams/incondition",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "In Condition",
    "javaType": "com.sos.joc.model.jobstreams.InCondition",
    "type": "object",
    "required": [
        "deliveryDate"
    ],
    "properties": {
        "id": {
            "id": "schemas/common/nonNegativeLong",
            "type": "string",
            "format": "utc-millisec"
        },
        "jobStream": {
            "type": "string"
        },
        "consumed": {
            "type": "boolean"
        },
        "markExpression": {
            "type": "boolean"
        },
        "conditionExpression": {
            "id": "schemas/jobstreams/condition_expression",
            "description": "Expression for Condition",
            "javaType": "com.sos.joc.model.jobstreams.ConditionExpression",
            "type": "object",
            "required": [],
            "properties": {
                "expression": {
                    "type": "string"
                },
                "validatedExpression": {
                    "type": "string"
                },
                "value": {
                    "type": "boolean"
                }
            }
        },
        "inconditionCommands": {
            "type": "array",
            "items": {
                "id": "schemas/jobstreams/incondition_command",
                "description": "In Condition",
                "javaType": "com.sos.joc.model.jobstreams.InConditionCommand",
                "type": "object",
                "required": [],
                "properties": {
                    "id": {
                        "id": "schemas/common/nonNegativeLong",
                        "type": "string",
                        "format": "utc-millisec"
                    },
                    "command": {
                        "type": "string"
                    },
                    "commandParam": {
                        "type": "string"
                    }
                }
            }
        },
        "outconditions": {
            "type": "array",
            "items": {
                "id": "schemas/jobstreams/jobstreamConditions",
                "description": "List of all Conditions using an event",
                "javaType": "com.sos.joc.model.jobstreams.JobstreamConditions",
                "type": "object",
                "properties": {
                    "jobStream": {
                        "type": "string"
                    },
                    "jobs": {
                        "type": "array",
                        "items": {
                            "id": "schemas/jobstreams/conditionref",
                            "description": "In Condition",
                            "javaType": "com.sos.joc.model.jobstreams.ConditionRef",
                            "type": "object",
                            "properties": {
                                "job": {
                                    "id": "schemas/common/path",
                                    "description": "absolute path based on live folder of a JobScheduler object.",
                                    "type": "string",
                                    "pattern": "/([^/]+/)*[^/]+"
                                },
                                "expressions": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}