const idx = [       // 10 - (default)
    'Command',      // 0 — runs a platform command line option.
    'Script',       // 1 — runs a script.
    'File Transfer',// 2 — performs file transfer.
    'File Watcher', // 3 — monitors file activity.
    'Database',     // 4 — runs an SQL script.
    'Hadoop',       // 5 — runs a job based on Hadoop objects.
    'Dummy',        // 6 — always ends successfully without running any commands.
    'Folder',       // 7 — displays a job folder, rather than a job.
    'Job'           // 8
].indexOf(value);
return idx !== -1 ? idx : 10;