Kaizen
Browse modulesLifecyclelifecycle/serverInterfaces

Interface: CreateLifecycleEngineOptions

Defined in: server/lifecycle/engine.ts:71

Properties

actorId?

optional actorId?: string;

Defined in: server/lifecycle/engine.ts:83

Actor ID for audit fields on transition/effect writes.


effects?

optional effects?: Record<string, LifecycleEffectBuilder>;

Defined in: server/lifecycle/engine.ts:81

Named effect payload builders referenced by transitions' effects. An effect with no builder records an empty payload.


entityPort

entityPort: EntityStatePort;

Defined in: server/lifecycle/engine.ts:74


entityType

entityType: string;

Defined in: server/lifecycle/engine.ts:73


guards?

optional guards?: Record<string, LifecycleGuard>;

Defined in: server/lifecycle/engine.ts:76

Named guard predicates referenced by transitions' guards.


machine

machine: CompiledMachine;

Defined in: server/lifecycle/engine.ts:72


tenancy?

optional tenancy?: LifecycleTenancyConfig;

Defined in: server/lifecycle/engine.ts:88

Enable ambient tenant scoping. Omit to retain the global namespace. Use the same mode for drain; entityPort must enforce entity ownership.

On this page