[rules-users] Insert new facts from RHS

Malinda Kaushalye kaushalye at yahoo.com
Wed Feb 17 20:12:15 EST 2010


Thanks folks. 




________________________________
From: Enda J Diggins <ejdiggins at gmail.com>
To: Rules Users List <rules-users at lists.jboss.org>
Sent: Thu, 18 February, 2010 3:38:35 AM
Subject: Re: [rules-users] Insert new facts from RHS

Hi Malinda,

rule "myrule"
 when
   //some condition
  then
   insert(new Object());
   // or
   Variable var = new Variable();
   insert(var);
end




On Wed, Feb 17, 2010 at 4:25 PM, Malinda Kaushalye <kaushalye at yahoo.com> wrote:

>Hi All,
>>How do I insert new facts/events to the working memory from RHS?
>
>>rule "myrule"
>>when
>>//Some condition
>>then
>
>>//Create and Insert some new events/facts to the working memory
>>end
>
>>Cheers,
>>Malinda
>
>
>
>
>
>>_______________________________________________
>>rules-users mailing list
>rules-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
>


-- 
Enda J Diggins



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100217/6449e793/attachment.html 


More information about the rules-users mailing list