|
model | example
{
"title": "modify order commands",
"id": "schemas/order/modifyOrders",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.order.ModifyOrders",
"type": "object",
"required": [
"jobschedulerId",
"orders"
],
"properties": {
"jobschedulerId": {
"type": "string"
},
"orders": {
"type": "array",
"items": {
"id": "schemas/order/modifyOrder",
"javaType": "com.sos.joc.model.order.ModifyOrder",
"type": "object",
"description": "NOTE: orderId is required too except for add order",
"required": [
"jobChain"
],
"properties": {
"orderId": {
"type": "string"
},
"jobChain": {
"id": "schemas/common/path",
"description": "absolute path based on live folder of a JobScheduler object.",
"type": "string",
"pattern": "/([^/]+/)*[^/]+"
},
"state": {
"description": "the name of the node",
"type": "string"
},
"endState": {
"description": "the name of the end node",
"type": "string"
},
"at": {
"id": "schemas/common/timestampWithNow",
"description": "ISO format yyyy-mm-dd HH:MM[:SS] or now or now + HH:MM[:SS] or now + SECONDS",
"type": "string",
"oneOf": [{
"pattern": "now(\\s*\\+\\s*(\\d+|\\d{1,2}:\\d{1,2}(:\\d{1,2})?))?"
}, {
"format": "date-time"
}]
},
"timeZone": {
"description": "see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
"type": "string"
},
"resume": {
"description": "only useful when changing order state of suspended orders",
"type": "boolean"
},
"removeSetback": {
"description": "only useful when order has a setback",
"type": "boolean"
},
"title": {
"type": "string"
},
"priority": {
"id": "schemas/common/nonNegativeInteger",
"type": "integer",
"minimum": 0
},
"params": {
"id": "schemas/common/nameValuePairs",
"type": "array",
"items": {
"javaType": "com.sos.joc.model.common.NameValuePair",
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"runTime": {
"description": "A run_time xml is expected which is specified in the <xsd:complexType name='run_time'> element of http://www.sos-berlin.com/schema/scheduler.xsd",
"type": "string"
}
}
}
},
"auditLog": {
"id": "schemas/common/auditParams",
"javaType": "com.sos.joc.model.audit.AuditParams",
"type": "object",
"properties": {
"comment": {
"type": "string"
},
"timeSpent": {
"id": "schemas/common/nonNegativeInteger",
"type": "integer",
"minimum": 0
},
"ticketLink": {
"type": "string"
}
}
}
}
}
{ "jobschedulerId": "scheduler", "orders": [{ "orderId": "order1", "jobChain": "/test/testJobChain" }, { "orderId": "order2", "jobChain": "/test/testJobChain" }, { "orderId": "order3", "jobChain": "/test/testJobChain" }, { "orderId": "order4", "jobChain": "/test/testJobChain" }, { "orderId": "order5", "jobChain": "/test/testJobChain" }] }
{
"jobschedulerId": "scheduler",
"orders": [{
"orderId": "order1",
"jobChain": "/test/testJobChain"
}, {
"orderId": "order2",
"jobChain": "/test/testJobChain"
}, {
"orderId": "order3",
"jobChain": "/test/testJobChain"
}, {
"orderId": "order4",
"jobChain": "/test/testJobChain"
}, {
"orderId": "order5",
"jobChain": "/test/testJobChain"
}]
}
|
|