[rules-users] Journaling and Commit Points

sirinath sirinath1978m at gmail.com
Mon Oct 7 09:33:42 EDT 2013


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*:
http://www.sakrio.com ▣
--


On 7 October 2013 17:14, jknehr [via Drools] <
ml-node+s46999n4026281h80 at n3.nabble.com> wrote:

>  [image: Boxbe] <https://www.boxbe.com/overview> jknehr [via Drools] (
> ml-node+s46999n4026281h80 at n3.nabble.com) is not on your Guest List<https://www.boxbe.com/approved-list?tc_serial=15338471916&tc_rand=867743701&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=Xec75c1A9grjeR02qjsbcRMsKSR8HVQwhFiAX9fyBZi3w0qr6upWpXQ2nctu5Fx4&key=HLvNQyt2Deum3xkgKCDPEwebP2WdT7cKYPmX%2BP9rrxU%3D>| Approve
> sender<https://www.boxbe.com/anno?tc_serial=15338471916&tc_rand=867743701&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=Xec75c1A9grjeR02qjsbcRMsKSR8HVQwhFiAX9fyBZi3w0qr6upWpXQ2nctu5Fx4&key=HLvNQyt2Deum3xkgKCDPEwebP2WdT7cKYPmX%2BP9rrxU%3D>| Approve
> domain<https://www.boxbe.com/anno?tc_serial=15338471916&tc_rand=867743701&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&token=Xec75c1A9grjeR02qjsbcRMsKSR8HVQwhFiAX9fyBZi3w0qr6upWpXQ2nctu5Fx4&key=HLvNQyt2Deum3xkgKCDPEwebP2WdT7cKYPmX%2BP9rrxU%3D>
>
> 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_rand=105757891&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=6qwSSdAPhyH06HTOB4RIokvutAT28y71Veb4nrm7ljrGd4cXjcl5oL11aZD9mYws&key=7kp7AQjnPChDc2llqjpiemDkmatRbCixb1x71n3gVqo%3D>| Approve
>> sender<https://www.boxbe.com/anno?tc_serial=15338069761&tc_rand=105757891&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token=6qwSSdAPhyH06HTOB4RIokvutAT28y71Veb4nrm7ljrGd4cXjcl5oL11aZD9mYws&key=7kp7AQjnPChDc2llqjpiemDkmatRbCixb1x71n3gVqo%3D>| Approve
>> domain<https://www.boxbe.com/anno?tc_serial=15338069761&tc_rand=105757891&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&token=6qwSSdAPhyH06HTOB4RIokvutAT28y71Veb4nrm7ljrGd4cXjcl5oL11aZD9mYws&key=7kp7AQjnPChDc2llqjpiemDkmatRbCixb1x71n3gVqo%3D>
>>
>> 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.html
>> > 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-tp4026278p4026279.html
>>  To unsubscribe from Journaling and Commit Points, click here.
>> NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>>
>
> ------------------------------
> View this message in context: Re: [rules-users] Journaling and Commit
> Points<http://drools.46999.n3.nabble.com/Journaling-and-Commit-Points-tp4026278p4026280.html>
> Sent from the Drools: User forum mailing list archive<http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html>at
> 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-tp4026278p4026281.html
>  To unsubscribe from Journaling and Commit Points, click here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026278&code=c2lyaW5hdGgxOTc4bUBnbWFpbC5jb218NDAyNjI3OHwtMTMzNDE4NDQ4NQ==>
> .
> NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>




--
View this message in context: http://drools.46999.n3.nabble.com/Journaling-and-Commit-Points-tp4026278p4026283.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20131007/ce3151fb/attachment-0001.html 


More information about the rules-users mailing list