async function doMain()

in agent/agent-activationdb.js [132:150]


async function doMain(args) {
    // normal activation: make activation available to debugger
    console.log("activation");

    if (hit(args, args.$condition)) {
        console.log("passing on to debugger");
        const id = await newActivation(args);
        return waitForCompletion( id );

    } else {
        console.log("condition evaluated to false, executing original action");
        return openwhisk().actions.invoke({
            name: `${process.env.__OW_ACTION_NAME}_wskdebug_original`,
            params: args,
            blocking: true,
            result: true
        });
    }
}