Created
March 9, 2017 02:49
-
-
Save eternnoir/1ef6dc472123c96063580eb2f1af17bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package drools | |
import org.enoir.droolstest.Message | |
rule "Hello World" | |
when | |
m : Message( status == Message.HELLO, myMessage : message ) | |
then | |
System.out.println( myMessage ); | |
m.setMessage( "Goodbye world" ); | |
m.setStatus( Message.GOODBYE ); | |
update( m ); | |
end | |
rule "GoodBye" | |
when | |
Message( status == Message.GOODBYE, myMessage : message ) | |
then | |
System.out.println( myMessage ); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment