Skip to content

state: forwardTo on an actor-driven parent Fire or a service settle forwards nil #260

Open

Description

@reka18

What happens

A parent transition that runs forwardTo(child) forwards the event that drove it only when the host drives the parent Fire itself. After #235, durable forwards the step's event for Fire and for a timer transition in Tick. A parent Fire that an actor drives (from DeliverToActor, or an actor spawned during a step) runs inside state.ActorSystem.fireParentFrom, which calls Absorb with no event, so its forwardTo hands the child nil. A forwardTo on a service settle's transition also forwards nothing.

Possible fix

Have fireParentFrom absorb the parent Fire's effects with AbsorbFor(ctx, event, effects), using the event the actor sent, and give the service runner's settle the same option. That's a change in state.

Relates to: #235, #256, #257

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions