@tinyactors/scxmljs
    Preparing search index...

    Interface InvokeContext

    What a custom Invoker receives for one <invoke>.

    interface InvokeContext {
        content?: unknown;
        invokeid: string;
        params: Record<string, unknown>;
        src?: string;
        type: string;
        done(data?: unknown): void;
        sendToParent(name: string, data?: unknown): void;
    }
    Index

    Properties

    content?: unknown

    Inline <content>: an Element, or the value of content/@expr.

    invokeid: string

    The invocation's id: id, or a generated stateid.platformid (also stored in idlocation).

    params: Record<string, unknown>

    Values from namelist and <param>.

    src?: string

    The src / srcexpr value, if any.

    type: string

    The type / typeexpr value.

    Methods

    • The service finished: the parent receives done.invoke.<invokeid>.

      Parameters

      • Optionaldata: unknown

      Returns void

    • Send an event to the invoking session (it arrives with invokeid set).

      Parameters

      • name: string
      • Optionaldata: unknown

      Returns void