diff --git a/samples/replicated/shopping-cart-service-java/src/main/java/shopping/cart/ShoppingCart.java b/samples/replicated/shopping-cart-service-java/src/main/java/shopping/cart/ShoppingCart.java index 7ad153f34..8d26419af 100644 --- a/samples/replicated/shopping-cart-service-java/src/main/java/shopping/cart/ShoppingCart.java +++ b/samples/replicated/shopping-cart-service-java/src/main/java/shopping/cart/ShoppingCart.java @@ -525,6 +525,7 @@ public EventHandler eventHandler() { .forAnyState() .onEvent( ItemUpdated.class, (state, event) -> state.updateItem(event.itemId, event.quantity)) + .onEvent(CustomerMarkedVip.class, (state, event) -> state.markCustomerVip()) .onEvent( Closed.class, (state, event) -> {