<div dir="ltr">There is no MEssage object in the code you paste.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 September 2013 11:10, Smurfs <span dir="ltr">&lt;<a href="mailto:smurfs.doll@gmail.com" target="_blank">smurfs.doll@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I am working on the guvnor in jboss.<br>
I have created a rule that use two objects Item and Tracker. It checks if<br>
the quantity in the ItemOrcer is greater than 20, then it sets the status in<br>
the Message object.<br>
<br>
KnowledgeBuilder kbuilder1 = KnowledgeBuilderFactory.newKnowledgeBuilder();<br>
                kbuilder1.add(ResourceFactory.newClassPathResource(&quot;testAdd.drl&quot;),<br>
ResourceType.DRL);<br>
                KnowledgeBase kbase1 = kbuilder1.newKnowledgeBase();<br>
                StatefulKnowledgeSession  ksession1 =<br>
kbase1.newStatefulKnowledgeSession();<br>
<br>
                Item obj = new Item();<br>
                obj.setQuantity(25);<br>
                ksession1.insert(obj);<br>
                ksession1.fireAllRules();<br>
<br>
I am not sure how to access the MEssage object. Can you please help me on<br>
that<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Access-the-return-value-in-Guvnor-tp4025842.html" target="_blank">http://drools.46999.n3.nabble.com/Access-the-return-value-in-Guvnor-tp4025842.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div>