[rules-users] ClassCastException when KnowledgeAgent loads declared type

Davide Sottara dsotty at gmail.com
Tue Jan 17 05:22:25 EST 2012


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-loads-declared-type-tp3664044p3665692.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list