I am a beginner on service bus and trying to understand the concept of Saga and Statemachines using Masstransit and Automatonymous.
The situation I have is, a saga to calculate food consumption in a county.
The saga will be triggered for a geographical state. The first task is to get a list of all counties using an API call.
Then, for each county publish/send an event for food consumption. Once the food consumption calculator finishes, it will raise an event.
The original saga will wait for all of these completion events and when it receives all of them, will collate the responses and create a final statistical report.
I was able to find the ability to collate the responses using this thread Handling transition to state for multiple events
However, I am unable to find a way of invoking the geographical-states lookup api and fire individual events from within the state machine.