Base class for every node in the workflow DAG.

An activity's lifecycle flows top-to-bottom through this file: enter → load state → map data → persist → transition → complete.

Each section delegates to a purpose-specific module inside activity/. Open the module when you need implementation detail; read this file when you need the big picture.

Hierarchy (view full)

Constructors

Properties

adjacencyList: StreamData[]
adjacentIndex: number = 0
code: number = 200
config: ActivityType
context: JobState
guidLedger: number = 0
logger: ILogger
status: StreamStatus = StreamStatus.SUCCESS

Methods

  • Leg 1 protocol: save → spawn → complete (Category B activities)

    Parameters

    • delta: number

    Returns Promise<boolean>

  • Leg 2 protocol: save → spawn → complete (duplex activities)

    Parameters

    • delta: number
    • shouldFinalize: boolean

    Returns Promise<boolean>

  • Leg 1 entry for Category B (Hook passthrough, Signal, Interrupt-target). Returns true when resuming from a prior crash (Leg1 already committed).

    Returns Promise<boolean>