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

Esteban Aliverti esteban.aliverti at gmail.com
Thu Aug 16 10:29:09 EDT 2012


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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120816/8b70246d/attachment.html 


More information about the rules-users mailing list