A little more on FR [ 1879470 ] Implement Table and Document ModelValidator script JSR 223
This commit is contained in:
parent
6a4c482c51
commit
154a633c70
|
@ -327,6 +327,7 @@ public class ModelValidationEngine
|
|||
MRule rule = MRule.get(po.getCtx(), scriptValidator.getAD_Rule_ID());
|
||||
// currently just JSR 223 supported
|
||||
if ( rule != null
|
||||
&& rule.isActive()
|
||||
&& rule.getRuleType().equals(MRule.RULETYPE_JSR223ScriptingAPIs)
|
||||
&& rule.getEventType().equals(MRule.EVENTTYPE_ModelValidatorTableEvent)) {
|
||||
String error;
|
||||
|
@ -471,6 +472,7 @@ public class ModelValidationEngine
|
|||
MRule rule = MRule.get(po.getCtx(), scriptValidator.getAD_Rule_ID());
|
||||
// currently just JSR 223 supported
|
||||
if ( rule != null
|
||||
&& rule.isActive()
|
||||
&& rule.getRuleType().equals(MRule.RULETYPE_JSR223ScriptingAPIs)
|
||||
&& rule.getEventType().equals(MRule.EVENTTYPE_ModelValidatorDocumentEvent)) {
|
||||
String error;
|
||||
|
|
Loading…
Reference in New Issue