Re: [rules-users] Possibly stupid question... but I have to ask

2011-07-29 Thread Wolfgang Laun
On 28 July 2011 23:36, menada euje...@gmail.com wrote: Because the fact is not already in the kbase (so i can't modify it and then insert it). (1) X x = new X(...); x.setA(...);...x.setZ(...); insert( x ); (2) X x = new X(...); insert( x ); modify( x ){ setA(...),..., setZ(...) } These two

[rules-users] Possibly stupid question... but I have to ask

2011-07-28 Thread Eugenia Carcel
Hi, Is it possible to insert and modify a fact in the same rule consequence ? From what I've read in the docs... it isn't... If I could do that it would be great for me. This is the reason why I post this question. I hope someone will anwer. ___

Re: [rules-users] Possibly stupid question... but I have to ask

2011-07-28 Thread saihegde
Yes, it is always possible to modify/insert facts as a consequence of a rule... Form what part of the docs do you infer that facts cannot be modified as part of the rule consequence. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Possibly-stupid-question-but-I

Re: [rules-users] Possibly stupid question... but I have to ask

2011-07-28 Thread menada
-Possibly-stupid-question-but-I-have-to-ask-tp3207666p3207709.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Possibly stupid question... but I have to ask

2011-07-28 Thread Joe White
-boun...@lists.jboss.org] On Behalf Of menada Sent: Thursday, July 28, 2011 2:20 PM To: rules-users@lists.jboss.org Subject: Re: [rules-users] Possibly stupid question... but I have to ask I meant to insert a fact and immediatly modify it, in the same rule consequence. I know you can insert OR modify

Re: [rules-users] Possibly stupid question... but I have to ask

2011-07-28 Thread menada
a string, $id) ); System.out.println( Inserted ); end -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Possibly-stupid-question-but-I-have-to-ask-tp3207666p3207973.html Sent from the Drools: User forum mailing list archive at Nabble.com