If you want to know which rules were executed, you can follow one of these solutions:
  1. Insert a global List in your session. The RHS of your rules then could add info there.
  2. Add an AgendaEventListener to your ksession: ksession.addEventListener(new AgendaEventListener() {...});

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Wed, Dec 29, 2010 at 8:58 AM, FrankVhh <frank.vanhoenshoven@agserv.eu> wrote:

Hi,

I saw your last update a little late :-)

If the looping is the problem, just add the no-loop attribute to the rule. I
got the same mistake just recently.

Regards,
Frank


FrankVhh wrote:
>
> Hi,
>
> Does the result of your ruleset seem to be ok to you?
>
> Maybe you could post some snippets of your code. An example of a rule will
> suffice as drl. Regarding to the java, the snippet of code where the
> tracking variable is declared and maybe even the "aftermath" (What happens
> after the ruleset is executed)
>
> Regards,
> Frank
>
>
> Shobhit1 T wrote:
>>
>> Hi frank,
>>
>> I tried what you just told. It goes into an infinite loop after updating.
>> and control remains in the drl.
>>
>> Regards,
>>
>> Shobhit
>> =====-----=====-----=====
>> Notice: The information contained in this e-mail
>> message and/or attachments to it may contain
>> confidential or privileged information. If you are
>> not the intended recipient, any dissemination, use,
>> review, distribution, printing or copying of the
>> information contained in this e-mail message
>> and/or attachments to it are strictly prohibited. If
>> you have received this communication in error,
>> please notify us by reply e-mail or telephone and
>> immediately and permanently delete the message
>> and any attachments. Thank you
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>

--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Can-we-return-values-from-rules-to-java-tp2162152p2162489.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users