Exception in thread "main"
java.lang.IllegalArgumentException: Unknown process ID: Number Guessat org.drools.common.AbstractWorkingMemory.startProcess(
AbstractWorkingMemory.java:1615)at org.drools.common.AbstractWorkingMemory.startProcess(
AbstractWorkingMemory.java:1604)at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(
StatefulKnowledgeSessionImpl.java:267)at com.sample.NumberGuessExample.main(
NumberGuessExample.java:38)This is only a reference to know in which class loader is the resource... The idea is to know that the resource (in this case: NumberGuess.drl and NumberGuess.rf) is in the same class loader that the ShoppingExample.class
2009/6/10 Tak-po Li <takpo.li@gmail.com>
_______________________________________________I am a newbie with Drools rules. I just download the examples. I notice in line19 of NumberGuessExample.java, there are two statement that referring to ShoppingExample.class.It seems this is different example. Could someone help me out?Thanks,Takkbuilder.add( ResourceFactory.newClassPathResource(
"NumberGuess.drl",ShoppingExample.
class ),ResourceType.
DRL );kbuilder.add( ResourceFactory.newClassPathResource(
"NumberGuess.rf",ShoppingExample.
class ),ResourceType.
DRF );
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users