mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? - Use archetypeID everywhere in history service and pass them to persistence ## Why? - Required for separate ID space work. ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s)
18 lines
629 B
Go
18 lines
629 B
Go
package chasm
|
|
|
|
// Archetype is the fully qualified name of the root component of a CHASM execution.
|
|
type Archetype = string
|
|
|
|
// ArchetypeID is CHASM framework's internal ID for an Archetype.
|
|
type ArchetypeID = uint32
|
|
|
|
const (
|
|
// UnspecifiedArchetypeID is a reserved special ArchetypeID value indicating that the
|
|
// ArchetypeID is not specified.
|
|
// This typically happens when:
|
|
// 1. The chasm tree is not yet initialized with a root component,
|
|
// 2. If it's a field in a persisted record, it means the record is persisted before archetypeID
|
|
// was introduced (basically Workflow).
|
|
UnspecifiedArchetypeID ArchetypeID = 0
|
|
)
|