Frodo Library - v4.8.5
    Preparing search index...

    Type Alias ScriptType

    type ScriptType = {
        createScriptTypeExportTemplate(): ScriptTypeExportInterface;
        exportScriptTypes(): Promise<ScriptTypeExportInterface>;
        importScriptTypes(
            importData: ScriptTypeExportInterface,
            scriptTypeId?: string,
        ): Promise<ScriptTypeSkeleton[]>;
        readScriptBindings(context: string): Promise<ScriptBinding[]>;
        readScriptType(scriptTypeId: string): Promise<ScriptTypeSkeleton>;
        readScriptTypes(): Promise<ScriptTypeSkeleton[]>;
        updateScriptType(
            scriptTypeId: string,
            scriptTypeData: ScriptTypeSkeleton,
        ): Promise<ScriptTypeSkeleton>;
    }
    Index

    Methods

    • Read the bindings (available objects/APIs, e.g. httpClient, idRepository) exposed to scripts running in a given scripting context.

      Parameters

      • context: string

        scripting context id, e.g. SCRIPTED_DECISION_NODE

      Returns Promise<ScriptBinding[]>

      a promise that resolves to an array of script bindings