To provide an overview of the imported model, the included decisions, inputs and business knowledge models are displayed.
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.
declab is designed for the creation of hundreds of tests. To test a modified model, all created tests can be executed simultaneously.
If an executed test fails, declab supports the user by providing a clear overview of the differences between the expected and calculated output.
To accelerate the development time of decisions, FEEL expressions can be executed in real time using the playground.
The following applications are required for client development:
- Node.js
- npm
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
.
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
.
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
.
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)
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
.
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.