mirror of
https://github.com/apache/incubator-kie-kogito-examples.git
synced 2025-08-26 02:12:13 +08:00
1.6 KiB
1.6 KiB
SonataFlow - Acme Financial Service
Description
This project contains a simple quarkus application that implements the Acme Financial Service
referred in the SonataFlow guide: Orchestration of third-party services using OAuth 2.0 authentication
Infrastructure requirements
The same infrastructure requirements as described in Currency Exchange Workflow.
Installing and Running
Prerequisites
The same prerequisites as described in Currency Exchange Workflow.
Compile and Run in Local Dev Mode
mvn clean package quarkus:dev
Compile and Run in JVM mode
mvn clean package
java -jar target/quarkus-app/quarkus-run.jar
or on Windows
mvn clean package
java -jar target\quarkus-app\quarkus-run.jar
Compile and Run using Local Native Image
Note that this requires GRAALVM_HOME to point to a valid GraalVM installation
mvn clean package -Pnative
To run the generated native executable, generated in target/
, execute
./target/acme-financial-service-{version}-runner
Submit a request
Use the following curl command if you want to manually resolve a pending query:
curl -X 'GET' \
'http://localhost:8483/financial-service/exchange-rate?currencyFrom=EUR¤cyTo=USD&exchangeDate=2022-06-10' \
-H 'accept: application/json'
Swagger UI
The swagger is also available in the following url: http://localhost:8483/q/swagger-ui