[rules-users] Can I put java code in dslr file?

Zhao Yi zhaoyi0113 at gmail.com
Sun Dec 11 20:10:31 EST 2011


I want to convert my drl to dsl and dslr. I found that if I choose using dsl,
I couldn't write java code in rules any more. I must translate everything in
dsl file. Can I combine dsl and drl in dslr file, like below rule. when I am
using dsl, I will get an error: "[10] Unable to expand: 
System.out.println("add caculation start");"

rule "add caculation"
	agenda-group "add"
	no-loop true
	dialect "java" 
	lock-on-active
	when
		$m: Whether exist event
	then
	System.out.println("add caculation start");
	System.out.println("add caculation end");
	
end


--
View this message in context: http://drools.46999.n3.nabble.com/Can-I-put-java-code-in-dslr-file-tp3578376p3578376.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list