Re: JESS: [EXTERNAL] How to persist the fact and rule base from a given session?

"Ernest Friedman-Hill" <[email protected]> Mon, 3 Dec 2012 10:55:43 -0500
Newsgroups gmane.comp.java.jess
Message-ID <CADB32XeuwxsBUauqPqHTVOzyx31J5=SEqFC_h2YD4hgL8veinA@mail.gmail.com>
--e89a8fb1edaa267e3504cff4c8ca
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Grant,

Sorry nobody answered this earlier. The "bsave" and "bload" commands save
and restore the binary state of a Jess engine to a file, and they're
probably just what you're looking for.


On Mon, Nov 26, 2012 at 5:21 PM, Grant Rettke <[email protected]> wrote:

> Hi,
>
> I would like to be able to "turn off" a Jess session so that all of its
> rules and facts would be persisted so that later I could start it up agai=
n.
>
> The scenario is something like... there are things we want to handle but
> the user has stopped the program, so we turn it off, but when we turn it
> back on, those events should be handled.
>
> I did read the docs but just didn't... maybe I missed something.
>
> Best wishes,
>
> --
> Grant Rettke | ACM, AMA, COG, IEEE
> [email protected] | http://www.wisdomandwonder.com/
> Wisdom begins in wonder.
> ((=CE=BB (x) (x x)) (=CE=BB (x) (x x)))
>

--e89a8fb1edaa267e3504cff4c8ca
Content-Type: text/html;
 charset=iso-8859-7
Content-Transfer-Encoding: quoted-printable

Hi Grant,<div><br></div><div>Sorry nobody answered this earlier. The &quot;=
bsave&quot; and &quot;bload&quot; commands save and restore the binary stat=
e of a Jess engine to a file, and they&#39;re probably just what you&#39;re=
 looking for.</div>
<div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Mon, Nov 2=
6, 2012 at 5:21 PM, Grant Rettke <span dir=3D"ltr">&lt;<a href=3D"mailto:gr=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>I would like to be able to &quot;turn off&quot; a Je=
ss session so that all of its rules and facts would be persisted so that la=
ter I could start it up again.</div><div><br></div><div>The scenario is som=
ething like... there are things we want to handle but the user has stopped =
the program, so we turn it off, but when we turn it back on, those events s=
hould be handled.</div>

<div><br></div><div>I did read the docs but just didn&#39;t... maybe I miss=
ed something.</div><div><br></div><div>Best wishes,<span class=3D"HOEnZb"><=
font color=3D"#888888"><br clear=3D"all"><div><br></div>-- <br>Grant Rettke=
 | ACM, AMA, COG, IEEE<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a> | =
<a href=3D"http://www.wisdomandwonder.com/" target=3D"_blank">http://www.wi=
sdomandwonder.com/</a><br>
Wisdom begins in wonder.<br>((=EB (x) (x x)) (=EB (x) (x x)))<br>
</font></span></div>
</blockquote></div><br></div>

--e89a8fb1edaa267e3504cff4c8ca--