[rules-users] Drool Function error

shawn youngxiao121 at hotmail.com
Wed Feb 29 18:08:49 EST 2012


I write a function in drool, but it always  has error.
The error is :The method insertLogical(PreCondition) is undefined for the
type InsertPreCondition
Is it because insertLogical must be used in RHS?
Is there any way to use insertLogical in function or implement the function
in RHS?

code:
import PreCondition;
import Authorization;

function void insertPreCondition(Authorization a) {
// a.getPreCondition()  returns an arraylist
	for( PreCondition pc : a.getPreCondition() ){
		insertLogical( pc );
	}
	
}

--
View this message in context: http://drools.46999.n3.nabble.com/Drool-Function-error-tp3788965p3788965.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list