You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case is to send an Event to a parent state Machine (actually 2 parent levels up) and that parent receiver would know the ActorRef of the sender
child relation: SMA => SMB => SMC
SMC sends an event holding its Ref to SMA
Note: either because
it is part of the Event (which is not the case - we have actionMeta._event.origin but it's not the ActorRef)
we're able to access the self ref in SMC (always or even at creation time) and fill the ref into the Event
as a work around; I'll send a message to the SM just after creation to feed it its Ref ; but that's a bit stretchy :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The use case is to send an Event to a parent state Machine (actually 2 parent levels up) and that parent receiver would know the ActorRef of the sender
child relation: SMA => SMB => SMC
SMC sends an event holding its Ref to SMA
Note: either because
as a work around; I'll send a message to the SM just after creation to feed it its Ref ; but that's a bit stretchy :)
Beta Was this translation helpful? Give feedback.
All reactions