-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 21. Permanently End Processes | ||
|
||
Date: 2024-08-07 | ||
|
||
## Status | ||
|
||
Proposed | ||
|
||
- Amends [19. Automatic Process Creation](0019-automatic-process-creation.md) | ||
|
||
## Context | ||
|
||
When an event is routed to a process instance that has ended, the process | ||
instance is "restarted" with a new root value obtained from | ||
`ProcessMessageHandler.New()`. | ||
|
||
This behavior is surprising to users, and it is unclear how to handle events | ||
that arrive after the process has ended. | ||
|
||
## Decision | ||
|
||
We will change the specification such that an engine must not call | ||
`ProcessMessageHandler.HandleEvent()` with any event that is routed to an | ||
instance that has been ended. | ||
|
||
This ADR does not propose any chanes to the behavior of timeout messages, which | ||
are already discarded when a process ends. | ||
|
||
## Consequences | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters