Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Checking out the code

Create a remote fork of https://github.com/Taskana/TaskanaSimpleHistory/

Create a local clone

Code Block
languagebash
git clone https://github.com/<yourname>/Taskana/TaskanaSimpleHistory.git

Create a remote for the upstream project so that it is later easier to retrieve changes from the main repository.

Code Block
languagebash
cd taskana
git remote add upstream https://github.com/Taskana/TaskanaSimpleHistory.git

Build the plugin

Taskana history library

Code Block
languagebash
cd lib
mvn ./mvnw clean install

...

REST API

with console:

Code Block
languagebash
cd lib\taskana-simplehistory-rest-spring-example
mvn spring-boot:run

Rest api will be available: http://localhost:8080/v1/task-history-event

How to include History service into taskana application?

Since history service is thought to be a plugin we have to include it into taskana application following next simple steps:

...

./mvnw spring-boot:run -P history.plugin -pl :taskana-rest-spring-example-boot

...

with Intellij:

  1. Open the Maven tab on the right
  2. Open the first entry 'Profiles'
  3. Select the checkbox 'history.plugin'
  4. Start ExampleRestApplication

Image Added 

REST API will be available: http://localhost:8080

...

/v1/task-history-event