A little more on FR [ 1879470 ] Implement Table and Document ModelValidator script JSR 223

This commit is contained in:
Carlos Ruiz 2008-02-04 06:57:34 +00:00
parent 6a4c482c51
commit 154a633c70
1 changed files with 2 additions and 0 deletions

View File

@ -327,6 +327,7 @@ public class ModelValidationEngine
MRule rule = MRule.get(po.getCtx(), scriptValidator.getAD_Rule_ID()); MRule rule = MRule.get(po.getCtx(), scriptValidator.getAD_Rule_ID());
// currently just JSR 223 supported // currently just JSR 223 supported
if ( rule != null if ( rule != null
&& rule.isActive()
&& rule.getRuleType().equals(MRule.RULETYPE_JSR223ScriptingAPIs) && rule.getRuleType().equals(MRule.RULETYPE_JSR223ScriptingAPIs)
&& rule.getEventType().equals(MRule.EVENTTYPE_ModelValidatorTableEvent)) { && rule.getEventType().equals(MRule.EVENTTYPE_ModelValidatorTableEvent)) {
String error; String error;
@ -471,6 +472,7 @@ public class ModelValidationEngine
MRule rule = MRule.get(po.getCtx(), scriptValidator.getAD_Rule_ID()); MRule rule = MRule.get(po.getCtx(), scriptValidator.getAD_Rule_ID());
// currently just JSR 223 supported // currently just JSR 223 supported
if ( rule != null if ( rule != null
&& rule.isActive()
&& rule.getRuleType().equals(MRule.RULETYPE_JSR223ScriptingAPIs) && rule.getRuleType().equals(MRule.RULETYPE_JSR223ScriptingAPIs)
&& rule.getEventType().equals(MRule.EVENTTYPE_ModelValidatorDocumentEvent)) { && rule.getEventType().equals(MRule.EVENTTYPE_ModelValidatorDocumentEvent)) {
String error; String error;