The problem is more complicated than it seems: imagine you
- load the DRL the first time
- create some instances of your clas
- load the DRL a second time
all the instances created so far would be "orphaned".
Likewise, all patterns include a type check: should that be updated?
We are still looking for an optimal policy. For now, my suggestion is to
include the declarations
in a different DRL (even better if you use a different package), keeping
them separate from
the rules that may have a different lifecycle.
Davide
( If this does not apply, please open a "zero-day" jira and force us to find
a solution :) )
--
View this message in context:
http://drools.46999.n3.nabble.com/ClassCastException-when-KnowledgeAgent-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.