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
The same infrastructure requirements as described in Currency Exchange Workflow.
The same prerequisites as described in Currency Exchange Workflow.
mvn clean package quarkus:dev
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
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
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'
The swagger is also available in the following url: http://localhost:8483/q/swagger-ui