The sample is configured by default to connect to a local Temporal Server running on localhost:7233.
To instead connect to Temporal Cloud, set the following environment variables, replacing them with your own Temporal Cloud credentials:
TEMPORAL_ADDRESS=testnamespace.sdvdw.tmprl.cloud:7233
TEMPORAL_NAMESPACE=testnamespace.sdvdw
TEMPORAL_CERT_PATH="/path/to/file.pem"
TEMPORAL_KEY_PATH="/path/to/file.key"
Start a worker:
./gradlew -q execute -PmainClass=io.temporal.samples.ordersaga.Worker
./gradlew -q execute -PmainClass=io.temporal.samples.ordersaga.Caller
- Uncomment the exceptions in OrderActivitiesImpl to see how the Saga handles failures