According to the Fusion manual, "after" is used like this:<br><br> $eventA : Foo(...)<br> $eventB : Bar( this after[0ms,1h] $eventA )<br><br>provided Foo and Bar have @role(event). <br><br>This works.<br><br>
But, given a class Wrapper( Foo foo ), the pattern combination<br> Wrapper( $eventA : foo )<br> $eventB : Bar( this after[0ms,1h] $eventA )<br>results in a class cast exception at runtime, telling me that a Foo cannot be cast to a org.drools.common.EventFactHandle.<br>
<br>Working around this by doing<br> Wrapper( $foo: foo )<br> $eventA : Foo( this == $foo ) <br>
$eventB : Bar( this after[0ms,1h] $eventA )<br><br>solves the problem, but is this really necessary and intentional? (The documentation doesn't even hint at such a restriction.)<br><br>-W <br>