RE: [rules-users] RE:Problem Using Update

2007-11-27 Thread Sikkandar Nawabjan
Hi,

a) Is the Object included in the include statement ?
b) Is the Object inserted into the Working Memory ?


I beleive If the object is not imported and not asserted in the working memory 
the rule may not activated. The problem for me occurred in the then part.

what i narrate is simple scenario.

 

 

From: [EMAIL PROTECTED] on behalf of Darko IVANCAN
Sent: Tue 11/27/2007 5:18 PM
To: Rules Users List
Subject: Re: [rules-users] RE:Problem Using Update



Hi,

some simple questions:

a) Is the Object included in the include statement ?
b) Is the Object inserted into the Working Memory ?

Do you have sample code, to show/reproduce the error ?
The mentioned JUnit Test should do the job.

thanks,
Darko Ivancan


On 26/11/2007 17:08, Mark Proctor wrote:
> Sikkandar Nawabjan wrote:
>> 
>>
>> Hi,
>>
>> I have rule like this
>>
>> rule "Update Id"
>>
>> dialect "mvel"
>>
>> salience 10
>>
>> 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:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > 
>> @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@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users 
>> <https://lists.jboss.org/mailman/listinfo/rules-users> 
>>  
>
> 
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users 
> <https://lists.jboss.org/mailman/listinfo/rules-users> 
>  
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users 
<https://lists.jboss.org/mailman/listinfo/rules-users> 


<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RE:Problem Using Update

2007-11-27 Thread Darko IVANCAN
Hi,

some simple questions:

a) Is the Object included in the include statement ?
b) Is the Object inserted into the Working Memory ?

Do you have sample code, to show/reproduce the error ?
The mentioned JUnit Test should do the job.

thanks,
Darko Ivancan


On 26/11/2007 17:08, Mark Proctor wrote:
> Sikkandar Nawabjan wrote:
>>  
>>
>> Hi,
>>
>> I have rule like this
>>
>> rule "Update Id"
>>
>> dialect "mvel"
>>
>> salience 10
>>
>> 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  @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@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>   
>
> 
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RE:Problem Using Update

2007-11-26 Thread Mark Proctor

Sikkandar Nawabjan wrote:
 


Hi,

I have rule like this

rule "Update Id"

dialect "mvel"

salience 10

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  @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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] RE:Problem Using Update

2007-11-26 Thread Sikkandar Nawabjan
 

Hi,

I have rule like this

rule "Update Id"

dialect "mvel"

salience 10

no-loop true

when

 $add:Address(name=="india")

then

$add.setId("100");

update($add)

end

am getting the error org.drools.FactException: Update error: handle not found 
for object

and  Address  @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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users