public class RuleEngineRuleValidateInterceptor extends java.lang.Object implements ValidateInterceptor<DroolsRuleModel>
| Constructor and Description |
|---|
RuleEngineRuleValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractValidationResult |
getValidationResult(DroolsRuleModel droolsRule,
InterceptorContext ctx) |
protected RuleModelValidator |
getValidator() |
void |
onValidate(DroolsRuleModel droolsRule,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setValidator(RuleModelValidator validator) |
public void onValidate(DroolsRuleModel droolsRule, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<DroolsRuleModel>droolsRule - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected AbstractValidationResult getValidationResult(DroolsRuleModel droolsRule, InterceptorContext ctx)
protected RuleModelValidator getValidator()
public void setValidator(RuleModelValidator validator)
Copyright © 2018 SAP SE. All Rights Reserved.