Files
temporal/chasm/archetype.go
Yichao Yang 0c2b360e40 CHASM: Propagate ArchetypeID (#8693)
## 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)
2025-11-26 16:04:44 -08:00

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
)