{
    "title": "order state",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.OrderState",
    "type": "object",
    "required": [
        "severity",
        "_text"
    ],
    "properties": {
        "severity": {
            "type": "integer"
        },
        "_text": {
            "javaType": "com.sos.joc.model.order.OrderStateText",
            "type": "string",
            "enum": [
                "PLANNED",
                "PENDING",
                "SCHEDULED",
                "RUNNING",
                "INPROGRESS",
                "PROMPTING",
                "SUSPENDED",
                "FAILED",
                "WAITING",
                "BLOCKED",
                "CANCELLED",
                "FINISHED",
                "BROKEN",
                "UNKNOWN"
            ]
        },
        "_reason": {
            "javaType": "com.sos.joc.model.order.OrderWaitingReason",
            "type": "string",
            "enum": [
                "DELAYED_AFTER_ERROR",
                "FORKED",
                "EXPECTING_NOTICE",
                "WAITING_FOR_LOCK",
                "BETWEEN_CYCLES"
            ]
        }
    }
}