Money transfer: Java project template
This project can be used as a template to start building your own Temporal Workflow application.
Follow the Run your first app tutorial to learn more about Temporal Workflows.
This project uses Snipsync comment wrappers to automatically keep code snippets up to date within our documentation.
How to use the template
To use the template, either download it as a zip file or click "Use Template" to make a copy of it in your own Github account.
Build the project
Either open the project in IntelliJ, which will automatically build it, or in the project's root directory run:
./gradlew build
Run the Workflow
First, make sure the Temporal server is running.
To start the Workflow, either run the InitiateMoneyTransfer class from IntelliJ or from the project root run:
./gradlew initiateTransfer
To start the Worker, either run the MoneyTransferWorker class from IntelliJ or from the project root run:
./gradlew startWorker