Skip to content

Open-source implementation of a trust miner for collaborative business processes.

License

Notifications You must be signed in to change notification settings

justdeko/trust-studio

Repository files navigation

Trust Studio Logo

Trust studio is a tool for evaluating and analysing trust and uncertainties in business process models annotated with BPMN. This web application combines various tools and utilities to be able to evaluate all relevant aspects of the selected bpmn file.

The general idea is based on research conducted by Marcel Müller et. al. and is thus a practical implementation of the "trust mining" process.

You can find a working demo of this project here:

This project was completed under the supervision of Marcel Müller and with the help of the SNET team at TU Berlin.

Stack

  • Frontend: reactjs
  • Backend: flask
  • Database: mongodb

all hosted inside docker in the same network, with frontend and backend exposed

Code conventions

  • UpperCamelCase for files and modules, camelCase for variables and other
  • types that are more complex than three key-value-pairs need to be defined in the model directory
  • Separation of concerns: components, pages, model, resources and util

Available Scripts

In trustminer-frontend, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

In trustminer-backend, you can run:

flask run and other flask-related commands

Other relevant utils

Extracting survey data from mongodb

Run mongodb shell for the running mongo container:

docker exec -it trust_studio_db mongo

Export data:

mongoexport -d trust_studio -c survey --out output.json

Copy data from docker container to either ssh server storage or local computer, depending where you are using docker from:

docker cp trust_studio_db:/output.json .

Stopping and deleting/resetting docker:

docker stop $(docker ps -aq) (Stops all currently running containers)

docker system prune -a --volumes (Deletes basically everything if docker containers are not running)

Libraries and APIs used

##Frontend

Bootstrapped with Create React App.

Libraries

Loading animations

bpmn.io

Backend

  • Flask==1.1.2
  • flask-mongoengine==0.9.5
  • flask_cors==3.0.7
  • mongoengine==0.20.0
  • pymongo==3.11.0
  • marshmallow==3.7.1
  • pyopenssl==19.1.0

About

Open-source implementation of a trust miner for collaborative business processes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published