use of org.hisp.dhis.programrule.action.validation.ProgramRuleActionValidationContext in project dhis2-core by dhis2.
the class ProgramRuleActionObjectBundleHook method validateProgramRuleAction.
private ProgramRuleActionValidationResult validateProgramRuleAction(ProgramRuleAction ruleAction, ObjectBundle bundle) {
ProgramRuleActionValidationResult validationResult;
ProgramRuleActionValidationContext validationContext = contextLoader.load(bundle.getPreheat(), bundle.getPreheatIdentifier(), ruleAction);
ProgramRuleActionValidator validator = programRuleActionValidatorMap.get(ruleAction.getProgramRuleActionType());
validationResult = validator.validate(ruleAction, validationContext);
return validationResult;
}
Aggregations