danielgerlag / workflow-core

Lightweight workflow engine for .NET Standard
MIT License
5.39k stars 1.2k forks source link

Waiting for an event in a while loop #1306

Open paxhujing opened 1 month ago

paxhujing commented 1 month ago

When you wait for an event in a while loop, you expect execution to continue each time the event is received and then continue waiting.

image

Why is context.ExecutionPointer.EventName null when CustomMessage.Run() executes, rather than the event name? context.ExecutionPointer.EventPublished Why is it false? Why don't loops wait?

image