[rules-users] WorkingMemoryEntryPoint NullpointerException?

Aman boy18nj at gmail.com
Sun Oct 3 22:04:00 EDT 2010


I got it, I have to use Entrypoint in my DRL file otherwise it would give
null pointer exception.

I used like this-

rule "Testing EntryPoint"

      when

            $cf : CashFlow() from entry-point "TransactionStream"

      then

            System.out.println($cf);

            System.out.println("Testing the transaction stream");

end

 

 

From: Aman [mailto:boy18nj at gmail.com] 
Sent: Sunday, October 03, 2010 9:42 PM
To: 'Rules Users List'
Subject: WorkingMemoryEntryPoint NullpointerException?

 

memoryEntryPoint is retrieved as null, what could be wrong here or do I need
to do some special configuration in order to use working memory point
streams?

 

            StatefulKnowledgeSession knowledgeSession =
GivemeStatelessOrStateful

                        .getStatefull("cashflow.drl");

 

            WorkingMemoryEntryPoint memoryEntryPoint = knowledgeSession

                        .getWorkingMemoryEntryPoint("TransactionStream");

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101003/305ecd1a/attachment.html 


More information about the rules-users mailing list