This repository comprises the source code of a code generator that transforms LEMMA domain and service models into Jolie APIs.
There are basically two possibilities to invoke the generator.
- Clone the repository,
cd
into the cloned folder and run thedocker-build.sh
Bash script. The script will build the generator's container imagelemma2jolie:latest
. - Run the
docker-run-sample.sh
Bash script to start a container based on thelemma2jolie:latest
image and invoke the generator on thesample-2.services
LEMMA service model in the cloned repository folder. This invocation results in the filesample-2.ol
in the cloned repository folder. It comprises the Jolie code corresponding to the LEMMA service model. - To invoke the generator on another LEMMA service model than
sample-2.services
, run thedocker-run.sh
Bash script with the respective LEMMA service model. Upon success, the generator will produce a Jolie file in the same directory and with the same base name as the LEMMA service model. For instance, the LEMMA service model/tmp/services.services
will be generated in the Jolie file/tmp/services.ol
.
Prerequisites: Java 11 and Maven >= 3.6.3.
- Clone the repository,
cd
into the cloned folder and run theinstall.sh
Bash script. The script will install all necessary dependencies for the generator in your local Maven repository and finally invokemvn clean install
. The latter command results in the executable generator filetarget/lemma2jolie.jar
. - Run the
run-sample.sh
Bash script to invoke the generator's JAR file on thesample-2.services
LEMMA service model in the cloned repository folder. This invocation results in the filesample-2.ol
in the cloned repository folder. It comprises the Jolie code corresponding to the LEMMA service model. - To invoke the generator on another LEMMA service model than
sample-2.services
, run therun.sh
Bash script with the respective LEMMA service model. Upon success, the generator will produce a Jolie file in the same directory and with the same base name as the LEMMA service model. For instance, the LEMMA service model/tmp/services.services
will be generated in the Jolie file/tmp/services.ol
.