The Money Transfer sample has three separate processes. One to host Workflow Executions, another to host Activity Executions, and the third one to request transfers (start Workflow Executions).
Start Workflow Worker:
./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.AccountTransferWorkerStart Activity Worker:
./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.AccountActivityWorkerExecute once per requested transfer:
./gradlew -q execute -PmainClass=io.temporal.samples.moneytransfer.TransferRequester