Accessing Saga Association Values #1125
Labels
Priority 4: Would
Lowest priority. Would-be-nice to include issues when time allows it.
Status: Resolved
Use to signal that work on this issue is done.
Type: Feature
Use to signal an issue is completely new to the project.
Milestone
Hello,
In my sagas sometimes i have situation where im communicating with external service which does not have any information about the id of the internal service aggregate.
When i receive event back from the external service i would like to continue the organization process internally with the id that has been associated with the saga prior to dispatching the command to the external service.
Currently a way of doing that is to just put the associated value inside saga class so it would be serialized and therefor i'm able to access it and continue the work.
However those situations happen quite a lot, and its just boiler plate code.
It would be really nice to have a way of accessing the association values within the saga event handler.
Example:
The text was updated successfully, but these errors were encountered: