Reference - BaklavaJS
    Preparing search index...

    Interface ForwardCalculationContext<G>

    interface ForwardCalculationContext<G = any> {
        engine: ForwardEngine<G>;
        executeOutput: (
            outputKey: string,
            outputValues?: Record<string, any>,
        ) => Promise<CalculationResult>;
        globalValues: G;
    }

    Type Parameters

    • G = any
    Index

    Properties

    engine: ForwardEngine<G>
    executeOutput: (
        outputKey: string,
        outputValues?: Record<string, any>,
    ) => Promise<CalculationResult>

    Programmatically execute the downstream chain connected to an execution-flow output. This can be called multiple times (e.g. in a loop) and is awaitable.

    Type Declaration

      • (
            outputKey: string,
            outputValues?: Record<string, any>,
        ): Promise<CalculationResult>
      • Parameters

        • outputKey: string

          The key of the execution-flow output to fire

        • OptionaloutputValues: Record<string, any>

          Optional values for the current node's outputs, visible to downstream nodes that pull data from this node during this chain execution.

        Returns Promise<CalculationResult>

        The calculation results of all nodes executed in the chain

    globalValues: G