Skip to content

Commit 353231f

Browse files
committed
Add field "state" to WorkflowStep
1 parent 890ee59 commit 353231f

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed

core/config/Library/Forms.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@
16861686
"groups": [
16871687
{
16881688
"name": "stem",
1689-
"fields": ["identifier", "category", "shortDescription", "executionDate"]
1689+
"fields": ["identifier", "category", "shortDescription", "state", "executionDate"]
16901690
}
16911691
]
16921692
}

core/config/Library/Language.de.json

+3
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,9 @@
16121612
"WorkflowStep": {
16131613
"label": "Arbeitsschritt",
16141614
"fields": {
1615+
"state": {
1616+
"label": "Status"
1617+
},
16151618
"executionDate": {
16161619
"label": "Datum der Durchführung"
16171620
}

core/config/Library/Valuelists/Language.default.de.json

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
"EPSG3857 (WGS 84 Web Mercator)": "EPSG3857 (WGS 84 Web Mercator)"
77
}
88
},
9+
"workflow-step-state-default": {
10+
"values": {
11+
"planned": "Geplant",
12+
"in progress": "Laufend",
13+
"completed": "Abgeschlossen",
14+
"canceled": "Abgebrochen"
15+
}
16+
},
917
"position-values-expansion-default": {
1018
"values": {
1119
"Maximale Ausdehnung": "Maximale Ausdehnung",

core/config/Library/Valuelists/Valuelists.json

+16
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@
1313
"EPSG3857 (WGS 84 Web Mercator)"
1414
]
1515
},
16+
"workflow-step-state-default": {
17+
"createdBy": "",
18+
"creationDate": "",
19+
"values": {
20+
"planned": {},
21+
"in progress": {},
22+
"completed": {},
23+
"canceled": {}
24+
},
25+
"order": [
26+
"planned",
27+
"in progress",
28+
"completed",
29+
"canceled"
30+
]
31+
},
1632
"position-values-expansion-default": {
1733
"createdBy": "",
1834
"creationDate": "",

core/src/configuration/built-in-configuration.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,11 @@ export class BuiltInConfiguration {
822822
userDefinedSubcategoriesAllowed: true,
823823
abstract: true,
824824
fields: {
825+
state: {
826+
inputType: 'dropdown',
827+
mandatory: true,
828+
valuelistId: 'workflow-step-state-default',
829+
},
825830
executionDate: {
826831
inputType: 'date',
827832
mandatory: true,
@@ -835,7 +840,7 @@ export class BuiltInConfiguration {
835840
groups: [
836841
{
837842
name: Groups.STEM,
838-
fields: ['identifier', 'category', 'shortDescription', 'executionDate']
843+
fields: ['identifier', 'category', 'shortDescription', 'state', 'executionDate']
839844
}
840845
]
841846
}

0 commit comments

Comments
 (0)