Hello,
I have the 2 below events in my saga
The UserAttached
event has a “membershipId” attribute with type UUID
Should i change it to String ? because like this it’s not working, the UserAttached
event is not handled
@SagaEventHandler(associationProperty = USER_ID)
public void on(UserCreated evt) {
SagaLifecycle.associateWith("membershipId", evt.getMembershipId());
}
@SagaEventHandler(associationProperty = "membershipId")
public void on(UserAttached evt) {}
public class UserAttached extends Event {
}
public abstract class Event {
private final UUID membershipId;
}