[rules-users] Drools 6 support for changeset

Mark Proctor mproctor at codehaus.org
Wed Dec 11 19:18:29 EST 2013


it’s not quite that automatic.

You can only do updates vis the dynamic modules system. you have to build jars and update to the latest jar.

Go through the KIE examples docs, and the unit tests I showed you.

Mark
On 11 Dec 2013, at 22:31, wtang <wtang at kana.com> wrote:

> Oh, I don't doubt for a moment that it is working.  I know it is working.  
> What I am trying to figure out is what step am I missing.
> 
> I installed drool 6.0 Eclipse plugin and simply added a loop in the out of
> the box hello word example.
> 
> while the loop is running, I went into the eclipse editor, modify and saved
> the hello word example in Sample.drl to print out instead of "Hello World"
> "Hello World!!!!".
> 
> The loop just keeps on printing out "Hello World" and not my changes which
> is "Hello World!!!!".
> 
> Here is the hello world program, I just modified it to add the loop:
> 
> public static final void main(String[] args) {
>        try {
>        	
>            // load up the knowledge base
> 	        KieServices ks = KieServices.Factory.get();
>    	    KieContainer kContainer = ks.getKieClasspathContainer();
>        	KieSession kSession = kContainer.newKieSession("ksession-rules");
> 
>            // go !
>        	while(true) {
>        		Thread.sleep(100);
> 	            Message message = new Message();
> 	            message.setMessage("Hello World");
> 	            message.setStatus(Message.HELLO);
> 	            kSession.insert(message);
> 	            kSession.fireAllRules();
>        	}
>        } catch (Throwable t) {
>            t.printStackTrace();
>        }
>    }
> 
> 
> 
> --
> View this message in context: http://drools.46999.n3.nabble.com/Drools-6-support-for-changeset-tp4027138p4027231.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list