-
Hello. public class OrderAggregate extends Aggregate<OrderId, Order, Order.Builder> {
@Assign
OrderCompleted handle(CompleteOrder c) throws OrderAlreadyCompleted {
...
}
@Assign
OrderCancelled handle(CancelOrder c) throws OrderAlreadyCompleted {
...
}
} and an public class WeirdCasesNotifier extends AbstractEventSubscriber {
@Subscribe
void on(Rejections.OrderAlreadyCompleted r, CancelOrder c) {
...
}
} I want to perform additional actions when the
Having a general subscriber in addition to the specific one fixes the problem: public class RejectionLogger extends AbstractEventSubscriber {
@Subscribe
void on(Rejections.OrderAlreadyCompleted r, CancelOrder c) {
...
}
@Subscribe
void on(Rejections.OrderAlreadyCompleted r) {
// Do nothing.
}
} Is this the right behavior of Spine when I try to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Discussed in person, filed a new issue. |
Beta Was this translation helpful? Give feedback.
Addressed in 1.7.0.