Hey,
I am playing around with the new CEP features in 5 M1 and primarily working off of the blog posts and API doc.
I have some patterns that pull from a stream:
<pre>$candle : Candle( $instrument : instrumentSpecification ) from entry-point "candles"</pre>
I have my entry point in the WM:
<pre>candlesEntryPoint = this.session.getWorkingMemoryEntryPoint("candles");</pre>
I have also defined Candle to be an event in my rule.package file:
<pre>
import org.test.Candle
declare Candle
        @role(event)
end
</pre>
When I execute my sesson/getWorkingMemoryEntryPoint code above, I get a null back for the entry point and thus can't insert the event (Candle). The API docs for the getWorkingMemoryEntryPoint state that I need to define an entry point in the rules file? Is that the above part in the rule.package part or is that some other declaration? If that is a different declaration, is there some documentation what that would look like?
The way I currently interpret the declare part is that I am designating my Candle object to be an event rather than a fact. Does that indirectly also declare an entry point? If so, how can I have heterogeneous streams with different object types?
Thanks
HC
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/Declaring-an-entry-point--%28drools-5-M1%29-tp19260204p19260204.html">Declaring an entry-point? (drools 5 M1)</a><br>
Sent from the <a href="http://www.nabble.com/drools---user-f11823.html">drools - user mailing list archive</a> at Nabble.com.<br>