<div dir="ltr">Hello there! I'm getting an classcastexception when I try to insert facts on my RuleAgent:<br><br>Properties props = new Properties();<br> props.put("url", "<a href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.acme.rules/latest">http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.acme.rules/latest</a>");<br>
props.put("newInstance", "true");<br> props.put("name","testagent");<br>RuleAgent agent = RuleAgent.newRuleAgent(props);<br> StatefulSession session = agent.getRuleBase().newStatefulSession();<br>
session.insert(fact);<br><br>The error happens on the session.insert method. It also happens inside my Seam application When I try to insert the facts on the working memory. My drools package contains the model that I've extracted from my seam application. <br>
If I run it using a local drl file, it works fine. This problem only happens with the rule agent<br><br>Could someone give me a hand on this?<br><br>Regards<br clear="all"><br>-- <br>"In a world without fences and walls, who needs Gates and Windows?"<br>
</div>