This content has been marked as final. Show 2 replies
Any thoughts? Does my question make sense?
It was a developer wiser than I who once said,
"If you ever find yourself attempting to write:
if (obj instanceof Foo)
smack yourself and reexamine the design of your program."
That being said, the rules engine (that is, the CBR) used in the simple manner you describe is just an expensive, glorified instanceof. It is only after the routing rules multiply and become more complex that you begin to realize the efficiencies that a rules engine can provide. If you expect to eventually encounter this complexity, go ahead and begin using the CBR today.