Files
workflow-editor/tools/example_tasks.json
T
Sven f979c797ba feat: Editor-Aufruf mit Task- und Typenrückgabe statt MongoDB
Tasks, eigene Typen und Metadaten pro Editor-Aufruf laden und an den Aufrufer zurückgeben. MongoDB-Persistenz entfernen und Header auf Rückgängig, Abbrechen und Fertig umstellen.

Python-Testserver und Regressionstests ergänzen; Verbindungslinien nach Import und Layoutänderungen neu berechnen.
2026-10-07 21:06:28 +02:00

48 lines
1.2 KiB
JSON

{
"name": "Testtour 4711",
"tasks": [
{
"s_id": 1,
"type": 3,
"topic": "Ankunft melden",
"track": true,
"txt": "Bitte Ankunft am Einsatzort bestätigen.",
"opt": false,
"reenter": false
},
{
"s_id": 2,
"type": 1000,
"topic": "Zustellung fotografieren",
"min": 1,
"max": 3,
"opt": false,
"reenter": true
}
],
"customTypes": [
{
"typeId": "custom-1000",
"taskType": 1000,
"baseTypeId": "fotos-aufnehmen",
"label": "Zustellnachweis",
"description": "Fotos zur Dokumentation einer Zustellung.",
"icon": "vaadin:camera",
"color": "#059669",
"inputs": 1,
"outputs": 1,
"properties": [
{ "id": "min", "label": "Mindestanzahl Fotos", "type": "NUMBER", "defaultValue": 1 },
{ "id": "max", "label": "Maximale Anzahl Fotos", "type": "NUMBER", "defaultValue": 3 },
{ "id": "opt", "label": "Optionale Aufgabe", "type": "BOOLEAN", "defaultValue": false },
{ "id": "reenter", "label": "Erneut bearbeitbar", "type": "BOOLEAN", "defaultValue": true }
]
}
],
"metadata": {
"tourId": 4711,
"requestId": "test-001",
"source": "python-testserver"
}
}