Package mc.core.domain.base.dobj.calc
Class AttributeValueCalculator
java.lang.Object
mc.core.system.base.BasePojo
mc.core.domain.base.dobj.calc.AttributeValueCalculator
public abstract class AttributeValueCalculator
extends mc.core.system.base.BasePojo
abstract class for dynamic attribute calculation, provides methods to access attributes of current entity in scripts
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeValueCalculator(ComplexEntity entity, String attkey) AttributeValueCalculator(ComplexEntity entity, String attkey, Locale locale) AttributeValueCalculator(ComplexEntity entity, String attkey, Locale locale, Territory territory) -
Method Summary
-
Constructor Details
-
AttributeValueCalculator
-
AttributeValueCalculator
-
AttributeValueCalculator
public AttributeValueCalculator(ComplexEntity entity, String attkey, Locale locale, Territory territory)
-
-
Method Details
-
execute
executes custom calculation script and sets its return value to the attribute- Throws:
ApplicationException
-
mandatoryAndMissingPair
- Returns:
- list of missing attributes defined as mandatory on type entity or classification
-