/* pass a hibernate session to the working memory as a 
global */
                        session = factory.openSession();
                        workingMemory.setGlobal("hibernateSession", session);

                        Login login = new Login();
                        workingMemory.insert(login);


the isssue was that i was doing it the wrong way that was 

                        Login login = new Login();
                        workingMemory.insert(login);

                        /* pass a hibernate session to the working memory as a 
global */
                        session = factory.openSession();
                        workingMemory.setGlobal("hibernateSession", session);


the order was wrong
-- 
View this message in context: 
http://n3.nabble.com/Call-class-method-from-LHS-of-a-rule-tp108383p519993.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to