I have set up a repository https://github.com/evacchi/kogito-travel-agency-tutorial with yet-another fork of Maciej's demo. I have upgraded kogito and quarkus to the latest version.
You will try two versions of the tutorial; one will run completely on your local machine. The other can run locally, but it would be more interesting if you tried it on OpenShift.
try this demo.
mvn compile quarkus:dev
then browse to localhost:8080
- try filing the details for a user and play with the UI
- now, try hot reload:
-
cd into 01-kogito-travel-agency then open vscode, configured with the kogito extension
-
follow these instructions https://github.com/cristianonicolai/devconfcz-2020#4-install-the-kogito-extension-in-vscodeand you may also try:
$ curl -L http://bit.ly/kogito-ext | sh
-
try editing rules, processes and data classes.
-
The goal for this is to try and get the "more complicated" examples to run on crc or minishift https://github.com/code-ready/crc https://github.com/minishift/minishift/releases
(crc is preferred but minishift may work if you have less disk space -- not sure if the operator will work though)
Follow the instructions here https://github.com/kiegroup/kogito-cloud-operator to install the examples and all the required services
- build both 06-kogito-travel-agency and 06-kogito-visas
- Start both services (
mvn package
; thenjava -jar target/*runner.jar
) - Follow the instructions in the readme and try and install the data service.
For more details, see also the wiki https://github.com/kiegroup/kogito-runtimes/wiki/Data-Index-Service (As described in the wiki, you will also need Kafka and Infinispan) - for persistence services, you can also try using
docker-compose
orpodman-compose
https://github.com/evacchi/kogito-travel-agency-tutorial/tree/master/docker-compose - you will still need to configure and start the data-index service
Here's what I found during the hackaton.
Validation
In the example there's no validation (nor client or server side).
Apparently there's no way to validate server side the input in the rest call, and invalid data are not printed to the logs in any way. We should probably study a way to do that.
Maven Wrapper
Maven wrapper is not working due to the lack of mvn wrapper jar. In my case the
zsh
mvn
plugin triggered mvn wrapper automatically therefore making the example fail. I think we should provide a correct implementation of mvn wrapper or remove it.Better instructions for installing vs code extensions
In the link provided, pointing to the github release page I didn't know what to do. @danielezonca told me to expand the artifacts
tab, download the .vsix file and install it manually. I think we should write these instructions somewhere.
BPMN editor
I found some quirks but they told the team already knows them: