[rules-users] Insert and Retract from drools server in one call?

Wolfgang Laun wolfgang.laun at gmail.com
Sat Jan 14 04:06:09 EST 2012


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 <dunnlow at yahoo.com> 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
> 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/20120114/c276dfe1/attachment.html 


More information about the rules-users mailing list