Skip to content
Snippets Groups Projects
Commit 35a46935 authored by Sophia Leierseder's avatar Sophia Leierseder Committed by S.Leierseder
Browse files

validation bug offer

parent 01f538db
No related branches found
No related tags found
No related merge requests found
import("system.logging");
import("system.result");
import("system.translate");
import("system.vars");
import("Context_lib");
import("Entity_lib");
import("Contact_lib");
if (ContactUtils.getContactTypeByContactId(ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))) != 2 && ContextUtils.getCountByContactId(vars.get("$field.OBJECT_TYPE"), ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))) == 0) {
logging.log(ContextUtils.getCountByContactId(vars.get("$field.OBJECT_TYPE"), ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))));
//result.string(translate.text("This contact has no possible link."))
}
\ No newline at end of file
//import("system.logging");
//import("system.result");
//import("system.translate");
//import("system.vars");
//import("Context_lib");
//import("Entity_lib");
//import("Contact_lib");
//
//if (ContactUtils.getContactTypeByContactId(ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))) != 2 && ContextUtils.getCountByContactId(vars.get("$field.OBJECT_TYPE"), ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))) == 0) {
// logging.log(ContextUtils.getCountByContactId(vars.get("$field.OBJECT_TYPE"), ProcessHandlingUtils.getOnValidationValue(vars.get("$field.CONTACT_ID"))));
// result.string(translate.text("This contact has no possible link."))
//}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment