Perhaps this is the answer: Just add a rule that retracts the "initial fact(s)".
Your description confuses me. At one point you use the plural, then the singular. What does "initial" mean in your parlance? Session-initial or client-request-initial? What is the lifetime of the stateful session? Longer than the processing of a single event? -W On 13 January 2012 22:16, dunnlow <[email protected]> wrote: > Hi. I've got a stateful session running in drools-server. A separate > client > is inserting facts using a batchexecutioncommand and reading/using the > result returned from the service call. I need a stateful session because > when I insert the facts from the client, some of the rules that trigger > insert new facts. However, once those main facts are inserted, and the > relevant rules fire, the initial facts can be retracted. > > Can anyone tell me the best way to do this. Basically, I'd like to do > something like an insertLogical (I suppose) to the server so that the fact > is retracted once all the rules have fired. > > I realize I can get the facthandle from the result and then send another > command to retract that fact handle. However, this means two calls to the > server for every event; I'd like to make this happen in a single call. > > Does anyone have any ideas? > > Thanks, > -J > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Insert-and-Retract-from-drools-server-in-one-call-tp3657736p3657736.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
