UnionDefinition
Describes a Union: a named group of Templates that Relations, outputs and Events can target together.
- Unions
- UnionBuilder for declaring a Union
- ReadUnionInstance for the Union inside an execution
Properties
Section titled “Properties”events
Section titled “events”
readonlyevents:Record<string,EventDefinition>
Events declared on the Union, keyed by Event key; the Runtime exposes them on every member Template.
fromRelations
Section titled “fromRelations”
readonlyfromRelations:Record<string,RelationDefinition>
Relations declared on this Union, keyed by Relation key.
readonlykey:string
Key of the Union, unique within its App.
readonlyprn:string
PRN of the Union, prn::<app>:union/<key>.
templatePrns
Section titled “templatePrns”
readonlytemplatePrns:string[]
PRNs of the member Templates, without duplicates.
toRelations
Section titled “toRelations”
readonlytoRelations:Record<string,RelationDefinition>
Relations that target this Union, keyed by their toKey; the Runtime fills it when it indexes the Definition.

