[rules-users] RE:Problem Using Update
Mark Proctor
mproctor at codehaus.org
Mon Nov 26 12:08:48 EST 2007
Sikkandar Nawabjan wrote:
>
>
> Hi,
>
> I have rule like this
>
> rule "Update Id"
>
> dialect "mvel"
>
> salience 100000
>
> no-loop true
>
> when
>
> $add:Address(name=="india")
>
> then
>
> $add.setId("100");
>
> update($add)
>
> end
>
That should work, its a fairly trivial use case, so I'm very surprised
it doesn't.... If you are suare this isn't working for you, can you open
a jira with a minimal self contained test project showing the error.
> am getting the error org.drools.FactException: Update error: handle not found for object
>
> and Address <mailto:Address at 4b25933f> @4b25933f. Is it in the working memory?
>
> what could be the problem? can't i use update??????
>
>
>
> Thanks and Regs,
>
> basha
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20071126/1b9794e0/attachment.html
More information about the rules-users
mailing list