Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 941 Bytes

File metadata and controls

40 lines (26 loc) · 941 Bytes

hackathon-auction

Hackathon project for the cyan table

Start the Worker

mvn compile exec:java -Dexec.mainClass="io.temporal.hackathon.AuctionWorker"

Start the Workflow

mvn compile exec:java -Dexec.mainClass="io.temporal.hackathon.Starter"

Start the CodecServer

mvn compile exec:java -Dexec.mainClass="io.temporal.hackathon.CodecStarter"

In the temporal UI, click on the codec icon (sunglasses) in the top right corner and put http://localhost:8000 in the Codec Server browser endpoint field in order to view the decoded values in the UI.

Send a bid (via a Signal)

Using the CLI

temporal workflow signal --workflow-id 'car' --name 'bid' --input '"tom"' --input '100'

Using the AuctionBidder program

This takes the username from the environment:

mvn compile exec:java -Dexec.mainClass="io.temporal.hackathon.AuctionBidder" -Dexec.args="100"