[rules-users] getWorkingMemoryEntryPoint returns null
Edson Tirelli
tirelli at post.com
Thu Jan 22 10:42:16 EST 2009
Zoltan,
Assuming there is no typo in your code, entry point should not be null:
WorkingMemoryEntryPoint ep = session.getEntryPoint("eventDoor");
assertNotNull( ep );
If it is null, there is probably a bug we need to fix. In this case, can
you open a JIRA with your test case?
Thanks,
Edson
2009/1/22 Zoltan Farkas <zoly at daxtechnologies.com>
> I load my kbase from a URL resource published by guvnor.
>
> the DRL version of my package is:
>
> here is how my package source is displayed by gunor:
>
> package eventprocessor
> import package.ExtendedEventVO
> global EventExpertProcessor processor
>
> rule "Test"
> dialect "mvel"
> when
> ExtendedEventVO( )
> then
> System.out.println("Hello World, events happen!!!")
> end
>
> rule 'TestEntryPoint'
> dialect 'mvel'
> when
> ExtendedEventVO() from entry-point eventDoor
> then
> System.out.println("Hello World, events happen!!!")
> end
>
> I saw similar Unit tests in the source code that pass the only difference I
> see is that I am getting the rules via guvnor, is it possible that Guvnor
> does not serialize the entryPoint?
> any idea what the problem can be?
>
> --zoly
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090122/57212570/attachment.html
More information about the rules-users
mailing list