[rules-users] Integrate Drools with Java application, need recommendations

2013-09-05 Thread srikanthmalli
Hi, I am trying Drools/Guvnor for very first time, we are planned to do Rule Authoring in Guvnor, compile, build and download the package to “Rule Package Directory”. Now the question I am having is, what is the best way to integrate Drools with our Java application? Option 1) Build the knowledge

[rules-users] Compatability between Eclipse jBPM5 5.5 Editor and Designer 2.4?

2013-09-05 Thread kawest173713
I had implemented a process in Designer 2.4 (thru Guvnor), using the Workflow pattern "Arbitrary Cycle" that is provided out of the box with the designer. Basically just created a new process within Designer, then placed the Arbitrary Cycle pattern into the process, and saved it - without making an

Re: [rules-users] DSL statement in Guvnor too long

2013-09-05 Thread Stephen Masters
As far as I know, we're stuck with it. Or at least I have never found a way around it other than trying to break the DSL sentences up. :( On 5 Sep 2013, at 20:25, Sean Su wrote: > Does anyone know if we can force the DSL statement in Guvnor to be displayed > with multiple lines when it is to

[rules-users] Expected Transaction Rollback Behavior of Drools 6

2013-09-05 Thread Alexander Herwix
Hey guys, I have a question regarding the expected transaction rollback behavior of drools 6 in an JTA-Environment. It looks like I have successfully configured drools within my app, however when I create a KieSession within a Transaction and roll it back, there is still some data persisted to

Re: [rules-users] Integrate Drools with Java application, need recommendations

2013-09-05 Thread Stephen Masters
My preference is option 1 … using a Spring application with a class which wraps a knowledge base / session. This has the advantage that sometimes I really do want to be able to mix up rules results with logic that I want to implement in Java code. There's obviously a performance impact if you a

[rules-users] DSL statement in Guvnor too long

2013-09-05 Thread Sean Su
Does anyone know if we can force the DSL statement in Guvnor to be displayed with multiple lines when it is too long to fit into one screen. I believe the default behavior is that it keeps expanding with the horizontal scroll bar, instead of wrapping to fit the screen. Thanks Sean ___

[rules-users] Running guvnor (5.4.0.Final) test scenarios against multiple packages

2013-09-05 Thread Björn Nord
Hi, In order to create some order in my chaos, I am considering moving my rules from my one large package into several smaller ones. I have successfully executed them all together after adding them to my changeset: So far so good. Every package ha

Re: [rules-users] Guvnor: test scenario executes 100000 times

2013-09-05 Thread Stephen Masters
It depends on what kind of rule it is. If it's a 'technical' (DRL) rule, then you just add "no-loop" after the rule name. If it's a web based decision table, then it's on the "attributes" tab for that table. As Rich mentioned, it's much easier for us to help if you post the rule/code. Steve

Re: [rules-users] Getting data from a database(My SQL) to Guvnor

2013-09-05 Thread Michael Anstis
In Guvnor you can't. If a programmatic approach is acceptable you could look into Templates and a custom DataProvider. On 5 September 2013 06:31, ashish6276 wrote: > Hi, > Can somebody guide me on how to pull data from a database(My SQL) to > Guvnor > Decision table . Problem statement is to

Re: [rules-users] Guvnor: test scenario executes 100000 times

2013-09-05 Thread rjr201
Please post your code so we can see what you are trying to do. It is very difficult to help you if we can't see what you are doing. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-test-scenario-executes-10-times-tp4025816p4025822.html Sent from the Drools: User fo

Re: [rules-users] Guvnor: test scenario executes 100000 times

2013-09-05 Thread Smurfs
I am very new to Guvnor.So, Can you please let me know where i need to add noloop -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-test-scenario-executes-10-times-tp4025816p4025821.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] Guvnor: test scenario executes 100000 times

2013-09-05 Thread rjr201
Could you post your rule and the code you are using to run it? -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-test-scenario-executes-10-times-tp4025816p4025820.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] counter in slidingTime window with restriction

2013-09-05 Thread Wolfgang Laun
Hard to believe, but who knows. Drools version and session setup, please. -W On 05/09/2013, Alexander Wolf wrote: > Hey guys, > > I wrote a rule to count the SensorEvents in my KnowledgeSession that have > been inserted via entry-point SensorEventStream over the last 3 seconds - > but I only w

Re: [rules-users] Guvnor: test scenario executes 100000 times

2013-09-05 Thread Smurfs
In this https://issues.jboss.org/browse/GUVNOR-1974, they ask to change the preferences.properties. but i could not find that file. can you please help me on that -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-test-scenario-executes-10-times-tp4025816p4025817.html

Re: [rules-users] Guvnor: test scenario executes 100000 times

2013-09-05 Thread Stephen Masters
The usual reason would be that you have a rule which is updating a fact on which it has a constraint. After each update it is therefore re-evaluated. In which case, you just need to add "no-loop" to it. Steve On 5 Sep 2013, at 10:47, Smurfs wrote: > Hi > I am working on guvnor in jboss. >

[rules-users] Guvnor: test scenario executes 100000 times

2013-09-05 Thread Smurfs
Hi I am working on guvnor in jboss. I have created a simple test scenario to test a rule of quantity greater than 5. When i run the scenario, it shows the message as "maximum number of rule firings (10) was reached. it is likely that there is a infinite loop". I am getting out of memory becau

Re: [rules-users] counter in slidingTime window with restriction

2013-09-05 Thread Alexander Wolf
Hey guys, I wrote a rule to count the SensorEvents in my KnowledgeSession that have been inserted via entry-point SensorEventStream over the last 3 seconds - but I only want the event to fire, if there were any events in the last 3 seconds at all. Problem: if there were no recent events, i sti