eligius
    Preparing search index...

    Interface IOperationScope

    interface IOperationScope {
        currentIndex: number;
        currentItem?: any;
        eventbus: IEventbus;
        loopEndIndex?: number;
        loopIndex?: number;
        loopLength?: number;
        loopStartIndex?: number;
        newIndex?: number;
        operations: IResolvedOperation[];
        owner?: any;
        parent?: IOperationScope;
        variables?: Record<string, unknown>;
        whenEvaluation?: boolean;
    }
    Index

    Properties

    currentIndex: number

    The current index with in the main operations loop

    currentItem?: any
    eventbus: IEventbus

    The eventbus instance shared amongst actions and operations

    loopEndIndex?: number

    The end index of the loop within the total number of operations

    loopIndex?: number

    When inside a loop, this is the current iteration of said loop

    loopLength?: number

    The number of iterations for the current loop

    loopStartIndex?: number

    The start index of the loop within the total number of operations

    newIndex?: number

    Set this index to change the current item in the main operations loop

    operations: IResolvedOperation[]

    The list of operations that is currently being executed

    owner?: any
    variables?: Record<string, unknown>
    whenEvaluation?: boolean

    The result of the last when evaluation, if any