Skip to content

πŸ“Š Web-based decision model laboratory powered by jDEC and Vue.js

License

Notifications You must be signed in to change notification settings

materna-se/declab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation



Features

Community

Overview

To provide an overview of the imported model, the included decisions, inputs and business knowledge models are displayed.

Powerful Builder

To simplify the creation of tests, declab supports the user by providing a powerful builder. It supports complex data types and an increasing number of FEEL data types (feel:string, feel:number and feel:boolean). Support for feel:date, feel:time, feel:dateTime is planned. The builder also suggests values that are predefined inside the imported model.

Batch Execution

declab is designed for the creation of hundreds of tests. To test a modified model, all created tests can be executed simultaneously.

Structured Results

If an executed test fails, declab supports the user by providing a clear overview of the differences between the expected and calculated output.

Playground

To accelerate the development time of decisions, FEEL expressions can be executed in real time using the playground.

Client

The following applications are required for client development:

  • Node.js
  • npm

Initialization

In order to initialize the project environment, the following commands should be executed:

cd ./client
npm install

Optionally, the environment variable DECLAB_HOST can be set to change the server endpoint. It defaults to http://127.0.0.1:8080/declab-{version}/api.

Development

In order to start the development server, the following command should be executed:

npm run dev

Afterwards, declab can be accessed at http://127.0.0.1.

Production

In order to start the production build, the following command should be executed:

npm run build

Afterwards, the generated files can be found at ./server/src/main/webapp.

Server

The following applications are required for server development:

  • Java 11
  • Maven
  • WildFly or JBoss (support for other application servers will be added in the future)

Production

In order to build a web archive, the following commands should be executed:

cd ./server
mvn clean package

Afterwards, the generated web archive can be found at ./server/target/declab-{version}.war. If declab should be directly executed on an application server, the generated web archive can be copied into the specified directory (for example ./standalone/deployments).

If declab should be executed in a Docker container, the project can be built and executed by using the included Dockerfile.

docker build -t declab:1.0.0 .
docker run -p 127.0.0.1:8080:8080 declab:1.0.0 

Afterwards, declab can be accessed at http://127.0.0.1:8080.

License

This project is available under the Apache License 2.0. Please refer to the LICENSE.md for more detailed information. The CONTRIBUTING.md and CODE-OF-CONDUCT.md are based on the great Open Source Template created by Auth0, available under the MIT License.