Workflows - context.SendEvent allows in Workflow or only in Activity
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 378
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 6
Description
# 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= instance=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= instance=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?
Contributor guide
Assessment
This issue has not been assessed yet.