From 09081396b0922dda1a95e54c7a06d292420f9e4f Mon Sep 17 00:00:00 2001 From: Moti Asayag Date: Wed, 22 Mar 2023 14:33:45 +0200 Subject: [PATCH] Describe loader.path propery Signed-off-by: Moti Asayag --- workflow-service/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/workflow-service/README.md b/workflow-service/README.md index 9b9dd0d40..b830f1d70 100644 --- a/workflow-service/README.md +++ b/workflow-service/README.md @@ -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`).