Newer
Older
import("Context_lib");
import("ActivityTask_lib");
import("Document_lib");
import("system.vars");
import("system.result");
// TODO: #1 Commented because of performance problems: in Filter view this Process is called for every row. Waiting for bugfix
// TODO: #2 add request for the use-case: Is the person contact an employee? -> no grant to delte!

Johannes Hörmann
committed
//result.string(!DocumentUtil.hasDocuments("CONTACT", null, vars.get("$field.CONTACTID"))
// && !TaskUtils.hasTasks(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId())
// && !ActivityUtils.hasActivities(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId()));