All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.examples.HelloWorld.drl Maven / Gradle / Ivy

The newest version!
package org.drools.examples
 
import org.drools.examples.HelloWorldExample.Message;

global java.util.List list
 
rule "Hello World"
    dialect "mvel"
	when
		m : Message( status == Message.HELLO, message : message )
	then
	System.out.println( message ); 
	modify ( m ) { message = "Goodbyte cruel world",
	               status = Message.GOODBYE };	               
end

rule "Good Bye"
    dialect "java"
	when
		Message( status == Message.GOODBYE, message : message )
	then
		System.out.println( message ); 	
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy