I tried a simpler version
rule "usecase2-test2"
when
$e0 : Event ()
ParsedValue(event == $e0, ruleId == "0", varName == "V0_1",
$e0_V0_1_varStringValue : varStringValue)
ParsedValue(event == $e0, ruleId == "0", varName == "V0_2",
$e0_V0_2_varStringValue : varStringValue)
accumulate(
ParsedValue( ruleId == "0", varName == "V0_1", varStringValue ==
$e0_V0_1_varStringValue, $e:event )
and
ParsedValue( event == $e, ruleId == "0", varName == "V0_2",
varStringValue == $e0_V0_2_varStringValue )
and
ParsedValue( event == $e, ruleId == "1", varName == "V1_1",
varStringValue == "X1_1")
and
ParsedValue( event == $e, ruleId == "1", varName == "V1_2",
varStringValue == "X1_2");
$es: collectSet( $e );
$es.size() >= 2 )
then
System.out.println( "usecase2" + $es.size());
end
but when I insert 2 events with same source (meaning same values with
(ruleId == "0", varName == "V0_1") and (ruleId == "0",
varName == "V0_2")
and right values for rule1 variables
then also it works with one single event and never satisfies this condition.
--
View this message in context:
http://drools.46999.n3.nabble.com/Nested-Collect-probably-tp4029681p40297...
Sent from the Drools: User forum mailing list archive at
Nabble.com.