I’d like to generate events that are dependent on another event. For example, I have a situation where I spawn a CreateAbstractTask command. When the task is created I have a CreatedAbstractTask event. When the task is created, I need to automatically create an instance of the task (spawn a CreateTask command), but this only occurs for some workflows and not for others, so I’d like the actor that deals with that special case to spawn the CreateTask commands but not fire them until the actor receives the CreatedAbstractTask event. How would I go about showing the dependency - only having the commands fire assuming the events were received?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| When does a persisted actor receive the next command? | 2 | 527 | June 18, 2021 | |
| How to locate a actor create by spawn | 0 | 293 | July 16, 2021 | |
| Interface between request reply model and event based system | 0 | 476 | November 11, 2019 | |
| Enforcing ordering guarantees on database changes | 3 | 567 | January 2, 2022 | |
| Get ActorRef to a previously spawned EventSourcedBehavior | 3 | 1032 | January 20, 2021 |