Re: [rules-users] Drools Multi level map access(Drools 5.5)

2013-10-07 Thread gboro54
That is what I thought but just wanted to confirm that there was no other way. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Multi-level-map-access-Drools-5-5-tp4026284p4026290.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

[rules-users] Pattern of usage question

2013-10-07 Thread Laird Nelson
I have several questions about using Drools in a stateless Java EE application. (I've actually used it for years, but have always felt an impedance mismatch and finally have a moment to ask about it. :-)) Like (I suspect) many people, I have a stateless session bean responsible for some business

Re: [rules-users] How to run the " rule test scenarios " from the Eclipse.

2013-10-07 Thread Rushabh
Hi, is this resolved? Can I run the test scenarios in the guvnor from the Eclipse plugin? Can you provide me the link to the Jira entry for this issue? -Thanks -- View this message in context: http://drools.46999.n3.nabble.com/How-to-run-the-rule-test-scenarios-from-the-Eclipse-tp3665269p40262

Re: [rules-users] Drools Multi level map access(Drools 5.5)

2013-10-07 Thread Mario Fusco
Hi, due to generic erasure we cannot figure out that the outer map contains a second map as value. That's why you have to explicitly downcast the value returned by the first map. For instance this should work: ((Map) field[ "parentKey" ])[ "childKey" ] I hope this helps, Mario -- View this me

[rules-users] Drools Multi level map access(Drools 5.5)

2013-10-07 Thread gboro54
I have a map that contains a map(Map>). I know you get to the first map via mapField["key"] but how do you then access the object in the second map? I have tried mapField["parentKey"]["childKey"] and mapField["parentKey"].["childKey"]. I also tried binding the parent map to a variable and access

Re: [rules-users] Journaling and Commit Points

2013-10-07 Thread sirinath
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. Mat

Re: [rules-users] Journaling and Commit Points

2013-10-07 Thread Mark Proctor
You can use the marshaller to copy the entire state of the rule engine. It works with JPA integration, by recording the JPA reference handle when it serialises. Mark On 7 Oct 2013, at 10:56, sirinath wrote: > Hi, > > Is it possible to have the ability to journal fact / rule / event > submissi

Re: [rules-users] Journaling and Commit Points

2013-10-07 Thread Jonathan Knehr
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 mainta

Re: [rules-users] Journaling and Commit Points

2013-10-07 Thread sirinath
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

Re: [rules-users] Journaling and Commit Points

2013-10-07 Thread Jonathan Knehr
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 wrote

[rules-users] Journaling and Commit Points

2013-10-07 Thread sirinath
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 mes