import("system.logging");
import("system.vars");
import("Entity_lib");
import("Attribute_lib");

attrValue = ProcessHandlingUtils.getOnValidationValue(vars.get("$field.ATTRIBUTERELATION_VALUE"));
var attribute = AttributeHandler.begin(vars.get("$field.AB_ATTRIBUTE_ID"));

attribute.setAttributeValue(attrValue);

//logging.log("field is " + field + " and attrvalue is " + attrValue)