Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Describe loader.path propery
Browse files Browse the repository at this point in the history
Signed-off-by: Moti Asayag <[email protected]>
  • Loading branch information
masayag committed Mar 22, 2023
1 parent 4b5bfdb commit 0908139
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions workflow-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ test the service. It should be removed once actual Tasks and WorkFlows start get
To start the application run the following from the root folder of 'workflow-service'.

```shell

java -Dspring.profiles.active=local -jar target/workflow-service-0.0.1-SNAPSHOT.jar

VERSION=1.0.3-SNAPSHOT
java -Dspring.profiles.active=local \
-Dloader.path=../workflow-examples/target/workflow-examples-${VERSION}-jar-with-dependencies.jar \
-jar target/workflow-service-${VERSION}.jar
```
or
```shell
VERSION=1.0.3-SNAPSHOT
export LOADER_PATH=../workflow-examples/target/workflow-examples-${VERSION}-jar-with-dependencies.jar
export SPRING_PROFILES_ACTIVE=local
java -jar target/workflow-service-${VERSION}.jar
```
Where the LOADER_PATH is the path to the jar containing the WorkFlowTasks and WorkFlows to be loaded into the service.

For convenience there is a shell script at the root of the folder that will run this command as well
(`start_workflow_service.sh`).
Expand Down

0 comments on commit 0908139

Please sign in to comment.