Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Auction Workflow

Auction workflow: open bidding, collect bids, close, determine winner, settle

Input: auctionId, itemName, startingPrice | Timeout: 60s

Pipeline

auc_open_bidding
    │
auc_collect_bids
    │
auc_close_auction
    │
auc_determine_winner
    │
auc_settle

Workers

CloseAuctionWorker (auc_close_auction)

CollectBidsWorker (auc_collect_bids)

Map.of("bidderId", "BID-001", "amount", startPrice + 10),

DetermineWinnerWorker (auc_determine_winner)

if (amount > winningBid) { winningBid = amount; winnerId = (String) bid.get("bidderId"); }

OpenBiddingWorker (auc_open_bidding)

SettleAuctionWorker (auc_settle)

Tests

6 tests cover valid inputs, boundary values, null handling, and error paths.

mvn test

Run this example: see RUNNING.md for setup, build, and CLI instructions.