This repository includes a React App for sustainable cloud-native application design that enables application designers to enrich business process models with additional sustainability-related information.
The repository includes docker files and docker compose files to start and deploy the app and the FlightBooking
web service. In addition, the repository includes a GitHub Action that builds a new docker image on every release and pushes the image to the GitHub package registry. You can start up the app at http://localhost:3000
and the web service at http://localhost
from published docker images by using $ docker compose up
with the docker-compose.yml
file. The docker-compose-development.yml
file can be used to test the setup by building the app locally using $ docker compose -f docker-compose-development.yml up
.
The Flight Booking scenario shows the features of the app and the concepts of sustainable cloud-native application design:
The app includes a business process modeler to model a business process. Select Upload Model
to upload the FlightBooking.xml
from the repository or other business process models. Select the model elements for the services to see the properties panel and define service metadata. The versions of the Flight Search
service are missing in the model from the FlightBooking.xml
and the Weather Information
service is not defined optional for the business process.
The FlightBooking
Apodini web service includes sustainability-related metadata by using the ApodiniSustainability package to annotate the web service and export the metadata from the web service. Select Fetch Metadata
to fetch the metadata of the FlightBooking
web service implementation from http://localhost/sustainability
. This includes additional versions of the Flight Search
service in the model and defines the Weather Information
service optional for the business process. Select Download Model
to see the metadata in the xml of the business process model.