All,<br><br>I have a situation where I want the rules execution to stop processing immediately when it encounters a situation like the following:<br><br>rule "Invalid RTV Line"<br> salience 100<br> <br> when
<br> rtvDetailLine : DetailLine(detailRtvNumber:rtvNumber != null, lineNumber != null ) <br> rtvHeader : RtvHeader( rtvNumber != detailRtvNumber )<br> then<br> logger.debug("Invalid RTV Line");
<br> throw new RuntimeException("Invalid RTV Line");<br>end <br><br>Basically this is a parent child relationship and under some circumstances the process that feeds data into the rules it corrupts this relationship. I want to stop the rules process immediately and do nothing further. As you see above, my first attempt is just throw a runtime exception that is caught/ logged and report by the calling program. Does this seem like a reasonable approach or is there a better approach to do this?
<br><br>Ron<br>