We currently have a Saga involved with two aggregates that have a one to many relationship. We can’t join them together due to other domain constraints.
Let’s call the first one the Problem aggregate. The second aggregate can be represented as the Mitigation aggregate. A Problem can have multiple Mitigations.
Is it possible for the ProblemSaga to listen to specific events of both the Problem and collection of the Mitigation aggregates? I would like to listen to a MitigationInvalidatedEvent in order to trigger invalidation of the Problem using the saga.
I know you can create associations with a different key and the same event property name (example with BuyOrder and SellOrder). But is it also possible to have multiple associations to Mitigations from that ProblemSaga? I noticed that the association_value_entry table contains a unique restraint on the sagaid and the associationkey combination.
Best regards and my thanks for creating and maintaining the Axon framework.