...
- If a URL is set, this URL is called with HTTP POST after task import, where the task itself is contained as JSON (only the meta data, not the uploaded files).
- The callback is also called in case of import errors, so your callback handler must evaluate the tasks state field given in json. A state of "open" (or in other words not "error") means a successful import of that task.
- If the callback is not returning a HTTP 200 status, translate5 will add a warning into the application log on each call of the callback.
Code Block | ||||
---|---|---|---|---|
| ||||
{
"id": "2636",
"entityVersion": "47",
"modified": "2023-11-07 14:15:01",
"taskGuid": "{8cdb06ec-840a-46e8-ad0a-5b44ff7d6197}",
"taskNr": "",
"foreignId": "",
"taskName": "Translate5 Demo Text EN - en \/ sq",
"foreignName": "",
"sourceLang": "5",
"targetLang": "274",
"relaisLang": "0",
"locked": null,
"lockingUser": null,
"state": "open",
"workflow": "default",
"workflowStep": "1",
"workflowStepName": "no workflow",
"pmGuid": "{e6828cdf-2ee0-4a25-af0a-92e6f060e9eb}",
"pmName": "Manager, Project (manager)",
"wordCount": "92",
"userCount": "0",
"referenceFiles": "0",
"terminologie": "0",
"orderdate": "2023-10-31 00:00:00",
"enddate": null,
"enableSourceEditing": "0",
"edit100PercentMatch": "0",
"lockLocked": "1",
"emptyTargets": "1",
"importAppVersion": "development",
"customerId": "1",
"usageMode": "simultaneous",
"segmentCount": "24",
"segmentFinishCount": "0",
"taskType": "projectTask",
"projectId": "2565",
"diffExportUsable": "0",
"reimportable": "1",
"description": "",
"created": "2023-11-07 14:14:49"
} |
The callback is called also in the case of an import error!
...