Skip to content

Workflows - context.SendEvent allows in Workflow or only in Activity #1643

@fabistb

Description

@fabistb

Description

With the current dotnet workflow sdk it is possible to raise an event in the Workflow but also in the WorkflowActivity.

When running context.SendEvent() in the Workflow context however it failes with the following exception:

ERRO[0015] Workflow actor 'dd75290c2de4449dba02f2af19cd6b10': execution failed with an error: workflow actor 'dd75290c2de4449dba02f2af19cd6b10': don't know how to process outbound message 'historyEvent:{timestamp:{seconds:1759835161 nanos:54778194} eventSent:{instanceId:"dd75290c2de4449dba02f2af19cd6b10" name:"event-name" input:{value:"1"}}} TargetInstanceID:"dd75290c2de4449dba02f2af19cd6b10"'  app_id=<appId> instance=<localClient>scope=dapr.runtime.actors.targets.orchestrator type=log ver=1.16.0
ERRO[0015] failed to invoke scheduled actor reminder named: start-Gehtw9_0 due to: workflow actor 'dd75290c2de4449dba02f2af19cd6b10': don't know how to process outbound message 'historyEvent:{timestamp:{seconds:1759835161 nanos:54778194} eventSent:{instanceId:"dd75290c2de4449dba02f2af19cd6b10" name:"event-name" input:{value:"1"}}} TargetInstanceID:"dd75290c2de4449dba02f2af19cd6b10"'  app_id=<appId> instance=<localClient>scope=dapr.runtime.scheduler.cluster type=log ver=1.16.0

The question is, from an overall workflow perspective, should it be even allows to raise an event on the Workflow level or is this a bug?

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