@servicenow/sdk - v4.9.0
    Preparing search index...

    Interface ActivityInstance<TBranches>

    Instance returned by wfa.playbook.activity() in the declarative syntax. Provides access to outputs (for data pills) and branches (for Decision activities), but NO builder methods — execution ordering is declared via startRule on the activity config.

    interface ActivityInstance<TBranches = never> {
        __activityRef: true;
        branches: TBranches;
        outputs: any;
        state: string;
        sysId: string;
    }

    Type Parameters

    • TBranches = never

      Branch references for Decision activities, never for regular activities

    Hierarchy (View Summary)

    Index

    Properties

    __activityRef: true
    branches: TBranches
    outputs: any
    state: string

    Runtime state of the activity (e.g. PENDING, COMPLETE). Usable in condition pills.

    sysId: string

    Sys_id of the activity record. Standard format data pill references only (not usable in conditions).