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....
Sent from the Drools: User forum mailing list archive at
Nabble.com.