There is no MEssage object in the code you paste.
On 6 September 2013 11:10, Smurfs <smurfs.d...@gmail.com> wrote: > Hi > > I am working on the guvnor in jboss. > I have created a rule that use two objects Item and Tracker. It checks if > the quantity in the ItemOrcer is greater than 20, then it sets the status > in > the Message object. > > KnowledgeBuilder kbuilder1 = KnowledgeBuilderFactory.newKnowledgeBuilder(); > > kbuilder1.add(ResourceFactory.newClassPathResource("testAdd.drl"), > ResourceType.DRL); > KnowledgeBase kbase1 = kbuilder1.newKnowledgeBase(); > StatefulKnowledgeSession ksession1 = > kbase1.newStatefulKnowledgeSession(); > > Item obj = new Item(); > obj.setQuantity(25); > ksession1.insert(obj); > ksession1.fireAllRules(); > > I am not sure how to access the MEssage object. Can you please help me on > that > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Access-the-return-value-in-Guvnor-tp4025842.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users