Re: [rules-users] CEP accumulate unclear behavior

2013-12-03 Thread Wolfgang Laun
As to the second test, what you observe is correct. All hell would break loose in most KBs if rules *not* referring to a certain fact would fire when such a fact is inserted! But you can easily achieve what you want by adding the pattern ServicePerformanceEvent() in front of the accumulate CE.

Re: [rules-users] drools-camel-server source code? (Drools 6)

2013-12-03 Thread Mark Proctor
see kie-camel: https://github.com/droolsjbpm/droolsjbpm-integration/tree/master/kie-camel Take a look at the KIE docs, on how to build jars. everything is mavenized now. Lots of examples http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html Example war: https://github

[rules-users] drools-camel-server source code? (Drools 6)

2013-12-03 Thread Jordan Brown
Hi, I found the WAR file (or at least one called drools-camel-server-example-6.0.0.Final.war which has example, so I am not completely sure that's it), but I was hoping to get my hands on the source code behind the Drools Camel Server. We would like to incorporate the rules created in Drools 6

[rules-users] JRuby Objects as Drools Facts

2013-12-03 Thread Ray Hooker
I have seen where one group in India claimed to be able to inserts JRuby objects as facts to Drools. I am very open to suggestions. The JRuby objects appear to Java to be class RubyObject. When I insert say a JRuby class named "Message", here is the message: [ObjectInsertedEventImpl: getFactHan

Re: [rules-users] drools 6 equivalent of addKnowledgePackages

2013-12-03 Thread Edson Tirelli
There are several different ways of doing it, but here is a snippet to help creating an in-memory kjar with default kbases and ksessions: public static byte[] createKJar(KieServices ks, ReleaseId releaseId, String pom,

[rules-users] Connectons-nous sur LinkedIn

2013-12-03 Thread olfa
LinkedIn Davide, J'aimerais vous inviter à rejoindre mon réseau professionnel en ligne, sur le site LinkedIn. Olfa Olfa Harrouchi Jeune chercheuse à la recherche d'un poste Phd Tunisie Veuillez confirmer que vous connaissez Olfa Harrouchi : https://www.linkedin.com/e/-hjwooc-ho

[rules-users] Connectons-nous sur LinkedIn

2013-12-03 Thread olfa
LinkedIn Davide, J'aimerais vous inviter à rejoindre mon réseau professionnel en ligne, sur le site LinkedIn. Olfa Olfa Harrouchi Jeune chercheuse à la recherche d'un poste Phd Tunisie Veuillez confirmer que vous connaissez Olfa Harrouchi : https://www.linkedin.com/e/q6k01m-hor

Re: [rules-users] How to declare custom accumulators in kmodule.xml?

2013-12-03 Thread Edson Tirelli
Alexis, This was not exposed in the kmodule and we are discussing the best way to do it. Ideally, we want to reduce in 6 the complexities of configuration we had in 5, and for accumulate functions, we are thinking the best would be to simply support them in imports in the DRL file. So, for i

Re: [rules-users] KIE Internal M2 Repository Access Denied

2013-12-03 Thread marjan.sterjev
KieScanner behaves the same with SNAPSHOT versions. Maybe I'm doing something wrong -- View this message in context: http://drools.46999.n3.nabble.com/KIE-Internal-M2-Repository-Access-Denied-tp4027058p4027074.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

[rules-users] How to declare custom accumulators in kmodule.xml?

2013-12-03 Thread abr
Hello everyone, I tried to move from Drools 5.5.0.Final to 6.0.0.Final and I've some issues with moving from declaring kbase in Spring to the new kmodule.xml. My main concern for the moment is about custom accumulators. In the 5.5.0.Final Spring config, I had something like : [...]

Re: [rules-users] CEP accumulate unclear behavior

2013-12-03 Thread ters
Forgot to mention, I use drools version 5.0.4 Final. -- View this message in context: http://drools.46999.n3.nabble.com/CEP-accumulate-unclear-behavior-tp4027069p4027072.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rul

Re: [rules-users] KIE Internal M2 Repository Access Denied

2013-12-03 Thread Mark Proctor
You can work around this now by having a wrapper project. All to does is have a single maven dependency on the target project, and in that you specify your maven version ranges. Mark On 3 Dec 2013, at 14:30, Mario Fusco wrote: > Hi, > > the problem with the last code you pasted is that you'

[rules-users] CEP accumulate unclear behavior

2013-12-03 Thread ters
Hi all. Respected experts of drools, please help me to understand how pattern + accumulate behave. I believe that an example is the best way to explain the problem, maybe it will look bulky, but suppose be enough. I use CEP and EventProcessingOption.Stream. Event class: /public class ServicePerfor

Re: [rules-users] KIE Internal M2 Repository Access Denied

2013-12-03 Thread Mario Fusco
Hi, the problem with the last code you pasted is that you're passing to the KieContainer a ReleaseId with a fixed non-snapshot version. Version 1.0.0 can be installed only once in a maven repository so the KieScanner assumes there's no need to do a further scan. To overcome this problem you should

Re: [rules-users] KIE Internal M2 Repository Access Denied

2013-12-03 Thread marjan.sterjev
Thank you. It works now with the security exclusion applied. Let's move on. The documentation says that KieScanner can scan local and remote repositories. However I can't get it works. Consider this simple program that tries to dynamically load rules jar that is not referenced in the project's po

Re: [rules-users] permgen leak

2013-12-03 Thread pmander
Oh, and run the test with -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m or else it will fail straight away. Paul -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027066.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] permgen leak

2013-12-03 Thread pmander
permgen.zip Here's the test I was using. You can change the dialect, number of runs, batches, rules etc as attributes in the test class. -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4

Re: [rules-users] permgen leak

2013-12-03 Thread brachi
thank you pmander, I tried the dialect "mval" and the permgen size was 150m after the deployment. still have some compilation and runtime issues because of the dialect... waiting to your unit test, I hope it will help us solve this problem. thank you very much! -- View this message in context:

Re: [rules-users] permgen leak

2013-12-03 Thread pmander
I've put together a test and running it through a few times shows that the perm gen will actually recover but only if it is set at a level that is double the initial value. Let me elaborate. In my test, I create a session, add the rules, the facts, query the results, remove the facts and results

Re: [rules-users] KIE Internal M2 Repository Access Denied

2013-12-03 Thread Michael Anstis
Hi, I've looked into what you report; and it does indeed appear we have a small issue ;) For now you can amend the /WEB-INF/classes/url_filter.yaml file in the WAR to remove the Maven Repository from authentication (see the exclusion below):- filter: - pattern: /rest/** exclude: - /*.ico

Re: [rules-users] permgen leak

2013-12-03 Thread Paul Mander
I'm putting together a test now. Should be ready in about an hour > On Dec 2, 2013, at 11:28 PM, Mark Proctor wrote: > > At this point we are probably stuck, without a unit test that reproduces the > issue. Or better still a patch fixing it. > > Mark >> On 2 Dec 2013, at 19:41, brachi wrote:

Re: [rules-users] drools 6 equivalent of addKnowledgePackages

2013-12-03 Thread Davide Sottara
The KIEFileSystem is an in-memory filesystem, so what you are doing is correct. You will have to set at least two more properties of the resource: 1) the sourcePath - e.g. "foo/myRule.drl" will eventually place the rule "file" in the virtual src/main/resources/foo folder, where it will be picked u

Re: [rules-users] drools 6 equivalent of addKnowledgePackages

2013-12-03 Thread pmander
I head previously read that but didn't spot the bit that mentions creating from a drl defined as a String. I take it this can be done from KieFileSystem. String rules = ... KieFileSystem kfs = kieServices.newKieFileSystem(); kfs.write(kieServices.getResources().newReaderResource(new StringReader(r

[rules-users] KIE Internal M2 Repository Access Denied

2013-12-03 Thread marjan.sterjev
I have installed drools-wb-6.0.0.Final-tomcat7.0 on Tomcat 7.0 with all default settings. The OS platform is windows 7. I’m trying to access the internal KIE M2-Repository in order to dynamically load (re-load with KieScanner) Kie Modules. The repository is defined in the POM the following way: