(function () {
    "use strict";

    kintone.events.on("app.record.detail.process.proceed", (event) => {
        const field = statusFieldMap[event.nextStatus.value];
        if (field) {
            event.record[field].value = kintone.getLoginUser().name;
        }
        return event;
    });

})();