[rules-users] rule with array

shawn youngxiao121 at hotmail.com
Wed Feb 15 13:42:27 EST 2012


I found someone idea. It's kind of like split array.
    when
	Request( $sPath : getSubjectPath() )  // get two dimensional array
    then
        for( int i = 0; i < $sPath.length; i++ ) {
                
        insert( $sPath[i]);
        
        }
But I don't know how to find the facts that are inserted through for loop.


--
View this message in context: http://drools.46999.n3.nabble.com/rule-with-array-tp3747680p3747911.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list