[rules-users] modify and update is not working in the rule file

Wolfgang Laun wolfgang.laun at gmail.com
Thu Aug 16 10:54:33 EDT 2012


Something like
  kSession.getAgenda().getAgendaGroup( "AndroGel" ).setFocus();

With the way the rules are written an agenda-group doesn't appear to
be required at all, but who knows.

-W



On 16/08/2012, Esteban Aliverti <esteban.aliverti at gmail.com> wrote:
> One last thing. Just like Wolfgang said: if you don't activate the
> agenda-group where the rule is defined its activations are never going to
> be executed.
>
> Best Regards,
>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> - Blog @ http://ilesteban.wordpress.com
>
>
> On Thu, Aug 16, 2012 at 4:29 PM, Esteban Aliverti <
> esteban.aliverti at gmail.com> wrote:
>
>> By the way, what are you trying to do in this piece of code?
>>
>> Collection<Object> objs = workingMemory.getObjects();
>>             Iterator<Object> it = objs.iterator();
>>
>>             while (it.hasNext()) {
>>                 Object obj = it.next();
>>                 if (obj instanceof Program) {
>>                     FactHandle fact = workingMemory.getFactHandle(obj);
>>                     workingMemory.update(fact, obj);
>>                 }
>>             }
>>
>> Best Regards,
>>
>> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>>
>> Esteban Aliverti
>> - Blog @ http://ilesteban.wordpress.com
>>
>>
>> On Thu, Aug 16, 2012 at 4:25 PM, Esteban Aliverti <
>> esteban.aliverti at gmail.com> wrote:
>>
>>> The project doesn't compile since the parent pom is missing. You don't
>>> event have the Drug and Program classes in it!
>>>
>>> Best Regards,
>>>
>>> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>>>
>>> Esteban Aliverti
>>> - Blog @ http://ilesteban.wordpress.com
>>>
>>>
>>>
>>> On Thu, Aug 16, 2012 at 4:02 PM, Rana <ven12344 at yahoo.com> wrote:
>>>
>>>> Please find the project attached. Please check and help me out. I am
>>>> now
>>>> like
>>>> cat on that wall. The project team needs it and this is giving me hard
>>>> time.
>>>> Please help
>>>>
>>>>
>>>>
>>>> http://drools.46999.n3.nabble.com/file/n4019196/pi-affiliate-drools-rule-engine.zip
>>>> pi-affiliate-drools-rule-engine.zip
>>>>
>>>>
>>>> Please help.
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://drools.46999.n3.nabble.com/modify-and-update-is-not-working-in-the-rule-file-tp4019158p4019196.html
>>>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> rules-users mailing list
>>>> rules-users at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>
>>>
>>
>


More information about the rules-users mailing list