Closed kaikreuzer closed 9 years ago
We agree that rule must be created even the template does not exist. It will be done. ModuleTypes are not used by the RuleEngine and there is no problem with them. The HandlerFactories are tracked by the rule engine and they reflect to the rule status. We are Ok with point 2. See the issue #60.
Ok, perfect.
The constructor of RuleImpl throws an IllegalArgumentException, if used templates or module types are not available in the system. This can create a bunch of critical lifecycle problems:
I see two solutions to this problem:
I very much prefer option 2 as I think in option 1 rules can miraculously disappear from the system when module types disappear - they should rather be in an error status in this case.