thx Wendy
i have done it this way, but what is wrong with that function (which is a
static java method)
import function
de.tarent.abiege.drools.util.DroolsUtils.requestsAreMatchingSubjectsforID
rule "Request Received Rule"
dialect "mvel"
when
$actual: ContextRequestType()
ArrayList( size >= 1 )
from collect( $expected : ContextRequestType(
requestsAreMatchingSubjectsforID(expected,$actual, "ID1")) over
window:time(1m) )
then
System.out.println("Request Received Rule Works ");
SubjectCacheEntry entry = new SubjectCacheEntry(new Subject(""), new
Date(System.currentTimeMillis()+ 4000));
channels["AuthZBlocking"].send(entry);
end
Unable to Analyse Expression
requestsAreMatchingSubjectsforID($expected,$actual, "ID1"):
[Error: unable to resolve method using strict-mode:
de.tarent.abiege.drools.util.DroolsUtils.requestsAreMatchingSubjectsforID(de.tarent.abiege.jaxb.generated.xacml.context.ContextRequestType,
de.tarent.abiege.jaxb.generated.xacml.context.ContextRequestType,
java.lang.String)]
[Near : {... requestsAreMatchingSubjectsfor ....}]
--
View this message in context:
http://drools.46999.n3.nabble.com/sliding-window-combination-tp3132340p31...
Sent from the Drools: User forum mailing list archive at
Nabble.com.