Skip to content

Commit b1e86ed

Browse files
committed
add final remarks to the readme.md
1 parent 664bc2b commit b1e86ed

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mvn source:jar install
101101

102102
## Add the Plugin to the Base Application
103103

104-
The plugin is now ready to use. The base application's model can be extended and the plugin needs to be added to the list of dependencies.
104+
The plugin is now ready to use. The base application's model can be extended and the plugin needs to be added to the list of dependencies. Again, there is a shortcut: just checkout the branch `with-criticality` of this repo, install the `criticality-prebuilt` module and start the base application in `incidents-app-java` with `mvn spring-boot:run`.
105105

106106
### Adjust the Model of the Base Application
107107

@@ -135,6 +135,12 @@ annotate my.Urgency with {
135135
};
136136
```
137137

138+
In order to have Criticality properly displayed in the Fiori Elements UI you also need to add the following CDS line to the `app/incidents/annotations.cds` below line 35:
139+
140+
```
141+
Criticality : urgency.criticality,
142+
```
143+
138144
Add the dependency of the just created plugin to your `srv/pom.xml`:
139145

140146
```xml
@@ -160,3 +166,5 @@ Get the Incidents entities with expanded `urgency` association.
160166
GET http://localhost:8080/odata/v4/ProcessorService/Incidents?$expand=urgency
161167
Authorization: basic YWxpY2U6
162168
```
169+
170+
The results should now include an integer value for some Urgency elements (according to the annotations you made). You can also see the Incidents coloured and annotated with little symbols on the UI now: http://localhost:8080/incidents/webapp/index.html

0 commit comments

Comments
 (0)