Skip to content
Snippets Groups Projects
iconIdProcess.js 316 B
import("system.vars");
import("system.result");
import("system.neon");
import("Keyword_lib");

var category = vars.getString("$field.PRIORITY");
var kwd = KeywordUtils.createKeyword("TASK.PRIORITY");
var icon = kwd.getPropForKey(category, "defaultAvatarRepresentation", true);

result.string(icon || "VAADIN:TASKS");