It will be much convenient if there if there is a built in way to do this.
Like the login mechanism.
Since event sourcing is getting much traction lately it would be good if
there is built in support.
--
Suminda Sirinath Salpitikorala Dharmasena, B.Sc. Comp. & I.S. (Hon.) Lond.,
P.G.Dip. Ind. Maths. J'Pura, MIEEE, MACM ▣ *Address*: 6G • 1st
Lane • Pagoda Road • Nugegoda 10250 • Sri Lanka. ▣ *Mobile*
: +94-(0)711007945 ▣ *Office*: +94-(0) 11 2 199766 ▣ *Home Office*: +94-(0)
11-5 875614 ▣ *Home*: +94-(0)11-5 864614 / 2 825908 ▣ *Web*:
▣
--
On 7 October 2013 17:14, jknehr [via Drools] <
ml-node+s46999n4026281h80(a)n3.nabble.com> wrote:
[image: Boxbe] <
https://www.boxbe.com/overview> jknehr [via
Drools] (
ml-node+s46999n4026281h80(a)n3.nabble.com) is not on your Guest
List<https://www.boxbe.com/approved-list?tc_serial=15338471916&tc_...
Approve
sender<https://www.boxbe.com/anno?tc_serial=15338471916&tc_rand=86...
Approve
domain<https://www.boxbe.com/anno?tc_serial=15338471916&tc_rand=86...
You could probably build a snapshot mechanism yourself. But I'd imagine it
would get tricky if you have drools declared objects, and/or equality
assert behavior, or you rely on the internal clock/time for any of your
rules.
You would have to listen on the insert and retract callbacks, and maintain
state separate from the drools session. Then have a background thread that
wakes up and writes the snapshot. Reproducing the drools defined objects
will be tricky, so you'll have to find a way to marshall these in and out.
And you'll also have to keep track of the entry points the facts belong to
so you know where to put them upon recovery.
Then when you start up, programmatically disable all the rules from
firing, then insert the snapshot facts into their respective working
memories, and then enable the rules. Or something like that :)
On Oct 7, 2013, at 7:13 AM, sirinath <[hidden
email]<http://user/SendEmail.jtp?type=node&node=4026281&i=0>>
wrote:
Regardless of single threaded or multi threaded it will be good if the
engine has journaling and state persistence
--
Suminda Sirinath Salpitikorala Dharmasena, B.Sc. Comp. & I.S. (Hon.)
Lond., P.G.Dip. Ind. Maths. J'Pura, MIEEE, MACM ▣ *Address*: 6G • 1st
Lane • Pagoda Road • Nugegoda 10250 • Sri Lanka. ▣ *Mobile*:
+94-(0)711007945 ▣ *Office*: +94-(0) 11 2 199766 ▣ *Home Office*: +94-(0)
11-5 875614 ▣ *Home*: +94-(0)11-5 864614 / 2 825908 ▣ *Web*:
http://www.sakrio.com ▣
--
On 7 October 2013 16:21, jknehr [via Drools] <[hidden
email]<http://user/SendEmail.jtp?type=node&node=4026280&i=0>
> wrote:
> <
https://www.boxbe.com/overview> jknehr [via Drools] ([hidden
email]<http://user/SendEmail.jtp?type=node&node=4026280&i=1>)
> is not on your Guest
List<https://www.boxbe.com/approved-list?tc_serial=15338069761&tc_...
Approve
>
sender<https://www.boxbe.com/anno?tc_serial=15338069761&tc_rand=10...
Approve
>
domain<https://www.boxbe.com/anno?tc_serial=15338069761&tc_rand=10...
>
> If your rules are deterministic (single threaded), this is easily
> accomplished by replaying the events into your session in the same order
> (so journal each event before inserting).
>
> Although this is not a snapshot, it does allow you to rebuild state.
>
> > On Oct 7, 2013, at 5:56 AM, sirinath <[hidden
email]<http://user/SendEmail.jtp?type=node&node=4026279&i=0>>
> wrote:
> >
> > Hi,
> >
> > Is it possible to have the ability to journal fact / rule / event
> > submissions to the engine with the ability to save a snapshot.
> >
> > In case a error occurs you rollback to a previous point and play the
> events
> > send to the engine.
> >
> > Also any error is easily reproducible.
> >
> > Suminda
> >
> >
> >
> > --
> > View this message in context:
>
http://drools.46999.n3.nabble.com/Journaling-and-Commit-Points-tp4026278....
> > Sent from the Drools: User forum mailing list archive at
Nabble.com.
> > _______________________________________________
> > rules-users mailing list
> > [hidden email]
<
http://user/SendEmail.jtp?type=node&node=4026279&i=1>
> >
https://lists.jboss.org/mailman/listinfo/rules-users
> _______________________________________________
> rules-users mailing list
> [hidden email] <
http://user/SendEmail.jtp?type=node&node=4026279&i=2>
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> ------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
>
>
http://drools.46999.n3.nabble.com/Journaling-and-Commit-Points-tp4026278p...
> To unsubscribe from Journaling and Commit Points, click here.
>
NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=...
>
>
------------------------------
View this message in context: Re: [rules-users] Journaling and Commit
Points<http://drools.46999.n3.nabble.com/Journaling-and-Commit-Points-...
Sent from the Drools: User forum mailing list
archive<http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.htm...
Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email] <
http://user/SendEmail.jtp?type=node&node=4026281&i=1>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[hidden email] <
http://user/SendEmail.jtp?type=node&node=4026281&i=2>
https://lists.jboss.org/mailman/listinfo/rules-users
------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://drools.46999.n3.nabble.com/Journaling-and-Commit-Points-tp4026278p...
To unsubscribe from Journaling and Commit Points, click
here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=...
.
NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=...