Conditions as Processing Threshold

The default behavior for a rule sheet is to try all of the rules against all of the instances that are referred to in the conditions. If there are multiple instances of entities or aliases then Corticon will automatically try all combinations of those entities or aliases (it’s this power that makes it possible to solve a Sudoku, or Magic Square problem with a single rule!)

In nearly all cases this is the behavior that you want. Corticon generally does the right thing and you don’t have to think about it. If you were a programmer writing code you'd have to write multiple nested loops to achieve what Corticon can do automatically.

However sometimes you may be faced with a situation where you don’t want all the instances processed or you don’t want all the rules processed. NOTE: If you don't want ANY of the rules processed you can set a precondition on the rule sheet.

Perhaps you want to find only the first instance out of a set of thousands that meets certain conditions

There are two techniques you can use

  1. CAPT
  2. Explicit STOP condition

CAPT is a mechanism that enables you to terminate processing of a rule once a rule has fired without needing to evaluate the remaining instances.

If you want to terminate the processing of other rules on a rule sheet once one of the rules has fired then that is done by adding an explicit "stop" condition to the rule.

These two techniques can be used in combination.

NOTE: Version 4.3 screenshots are used in the attachment