Wird beim Anlegen des Jobs eine Callback-URL angegeben, ruft der Job Server bei Fertigstellung des Jobs die URL mit einem POST auf. Die Antwort wird ignoriert.
Beispiel-POST des Job Servers auf Callback URL:
Request |
POST http(s)://callbackurl |
Accept |
application/json |
Accept-Encoding |
gzip, deflate |
Pragma |
no-cache |
Body |
"id": "be3e05a5-de59-480e-80a4-181962267a90",
"status": "Running",
"message": "Entering myjob with mykey: 1234",
"inputData": {
"params": {
"ricsid": "1234567"
},
"callback": {
"href": "http://callbackurl"
}
},
"jobDef": {
"name": "myjob",
"workerData": {
"type": "jmx",
"data": {
"name": "myjob",
"continueOnError": false,
"baseModelFile": "model.eox",
"successMailRecipients": "",
"failedMailRecipients": "",
"actions": [
{
"name": "MyLibrary.MyCustomActionWithMapArg",
"args": "List{trigger.params}"
},
[…]
]
}
},
"serviceData": {
"type": "WebService/empty",
"data": {}
}
},
"jobName": "myjob_150817_1708_57700",
"executedOnWorker": "http://workerurl:5901",
"resultData": {},
"@meta": {
"self": "http://aliasurl/api/jobs/be3e05a5-de59-480e-80a4-181962267a90"
}
"links": {
"logs": {
"href": "http://aliasurl/api/logs/"
},
"repository": {
"href": "http://aliasurl/api/repository/"
}
"downloads": {
"href": "http://aliasurl/api/jobs/be3e05a5-de59-480e-80a4-181962267a90/downloads"
}
}
}
|