Re: [rules-users] 6.0.1.F Enumeration Reloading Weirdness

2014-03-13 Thread Michael Anstis
We assume, even when a helper function is used, that the list is static. If you want to force server-side invocation of your helper function to refresh the list you need to include a parameter in the definition. This signals the list is dynamic and should be refreshed using the helper function.

[rules-users] IllegalStateException:

2014-03-13 Thread Raja Sekhar
Hi Iam processing dataset stream with storm. After receiving the first set of records the rule is firing. For next set of records i getinet this exception Illegal method call. This session was previously disposed I after firing the rules the session is get disposed. I am not getting where to

[rules-users] System property Maven's settings.xml don't picked up during kie-wb startup

2014-03-13 Thread vektory79
When the kie-wb starts up, the Maven's settings.xml don't applying. As a result, such settings, like a proxies, mirrors, and so on are missed. In closed network it's lead to improper work of application, and such exceptions like: -- View this message in context:

Re: [rules-users] System property Maven's settings.xml don't picked up during kie-wb startup

2014-03-13 Thread vektory79
I forgot to point out that using the latest snapshot of Drools 6. -- View this message in context: http://drools.46999.n3.nabble.com/System-property-Maven-s-settings-xml-don-t-picked-up-during-kie-wb-startup-tp4028677p4028678.html Sent from the Drools: User forum mailing list archive at

[rules-users] Possibly improper initialization of default repository in Aether

2014-03-13 Thread vektory79
I'm found, that in class org.kie.scanner.Aether default central repository initializing with hardcoded ulr, like: In my point of view, this is incorrect, because it might be a mirrors in settings.xml. I think, that more proper variant is: But its throws in problem, described in this topik

Re: [rules-users] Possibly improper initialization of default repository in Aether

2014-03-13 Thread vektory79
Mistake again . I forgot point out, that use a Drools 6. -- View this message in context: http://drools.46999.n3.nabble.com/Possibly-improper-initialization-of-default-repository-in-Aether-tp4028679p4028680.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Possibly improper class filtering in KieModuleMetaDataImpl

2014-03-13 Thread vektory79
In Drools 6 in class org.kie.scanner.KieModuleMetaDataImpl resources detected as classes by .class suffix only. In some cases it's doesn’t true. For example for package-info.class, that doesn’t class by itself. At my point of view, it needs some more complex validation. For example: --

[rules-users] Question to Knowledge-Agent Behaviour

2014-03-13 Thread Peach Wyss
Hy all We're having the following situation in our application: ChangeSet: change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'   xs:schemaLocation='http://drools.org/drools-5.0/change-set

Re: [rules-users] System property Maven's settings.xml don't picked up during kie-wb startup

2014-03-13 Thread vektory79
As shown by my investigation, it's not needed any tricks to support mirrors. Aether do almost all the work. When WEB IDE is building the project, the session is initialized properly and mirrors a working well. But default repository with direct url is still in account and continue trying to

[rules-users] Too agressive scanning of classes in KieModuleMetaDataImpl

2014-03-13 Thread vektory79
In Drools 6, when org.kie.scanner.KieModuleMetaDataImpl is initialized, it scans all classes in all dependencies. At my point of view, it's a too aggressive. In many situations, scanner catches not only needed modules, but many modules with testing and provided scopes. In other side, in

[rules-users] NullPointerException with factType.get(fact, fieldname)

2014-03-13 Thread JarkkoMakela
Drools version 6.0.0.FINAL I create rule package in Drools workbench and use default knowledgebase and session: KieServices kieServices = KieServices.Factory.get(); KieContainer kContainer = kieServices.newKieContainer(kieServices.newReleaseId(com.test, validationrules, 1.0-SNAPSHOT));

[rules-users] compare date structure in WHEN part

2014-03-13 Thread Gopu Shrestha
I want to compare the date structure -MM-DD in when part. Can I do this?? any help will be appreciated.. rule name when DateRange($endDate: endDate !=null) // $endDate == -MM-DD structure then log.info(..) end

[rules-users] Avoid parsiong project pom.xml when running Drools

2014-03-13 Thread Sandjaja, Dominik
Hello, I am using Drools 6.1.0.Beta1 in a project with the following (shortened) pom.xml: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0

Re: [rules-users] compare date structure in WHEN part

2014-03-13 Thread Gopu Shrestha
I got solution Followed Toni Rikolla http://stackoverflow.com/questions/13572661/drools-guvnor-how-do-dates-and-times-work rule name when DateRange($endDate: endDate !=null, isValidStructure($endDate.toString)); then log.info(..) end function Boolean

[rules-users] How to set streaming mode

2014-03-13 Thread GrantWang
I have the following that is working. KieServices kieServices = KieServices.Factory.get(); ReleaseId releaseId = kieServices.newReleaseId(com.company, drools, 0.0.1-SNAPSHOT); KieFileSystem kfs = kieServices.newKieFileSystem();

[rules-users] DSL sentence with multiple variables is defect

2014-03-13 Thread Kai Jemella
Hi, i recognized that DSL with multiple variables not working in current 6.1.0-SNAPSHOT master. First i created a jira issue in the drools project: https://issues.jboss.org/browse/DROOLS-428 I thought it was ui issue. I had closed the ticket and recreated it in guvnor project.

Re: [rules-users] IllegalStateException:

2014-03-13 Thread Raja Sekhar
Hi Can someone help me with this. Regards Raj On 13 March 2014 14:05, Raja Sekhar raja.amir...@gmail.com wrote: Hi Iam processing dataset stream with storm. After receiving the first set of records the rule is firing. For next set of records i getinet this exception Illegal method call.

Re: [rules-users] DSL sentence with multiple variables is defect

2014-03-13 Thread Michael Anstis
I tried with the latest code (6.1.0.Beta1) and it works OK. [when]When the credit rating is {rating:ENUM:Applicant.creditRating} and applicant dates is after {dos:DATE:default} = applicant:Applicant(creditRating=={rating}, applicationDate{dos}) 1.|package org.mortgages; 2.| 3.|import

Re: [rules-users] Avoid parsiong project pom.xml when running Drools

2014-03-13 Thread Mario Fusco
Hi Dominik, what you're reporting is not 100% clear to me. Could you also show me the pom.xml file of de.test.package:artifact:1.0.1? This is indeed the actual KieProject and then the pom file that our embedded maven/aether is trying to parse. Apparently also that pom declares

Re: [rules-users] Avoid parsiong project pom.xml when running Drools

2014-03-13 Thread Sandjaja, Dominik
Hello, the pom.xml of de.test.package:artifact:1.0.1: ?xml version=1.0 encoding=UTF-8? project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: [rules-users] Too agressive scanning of classes in KieModuleMetaDataImpl

2014-03-13 Thread Mario Fusco
Hi, I am not sure I completely agree with what you wrote. In general all the classes defined in all transitive dependencies could potentially be used in your domain and then should be indexed by the KieModuleMetaDataImpl. I'd say that something like: provided scoped modules could be included,

Re: [rules-users] IllegalStateException:

2014-03-13 Thread Davide Sottara
Are you using stateful or stateless sessions? Davide On 03/13/2014 05:01 PM, Raja Sekhar wrote: Hi Can someone help me with this. Regards Raj On 13 March 2014 14:05, Raja Sekhar raja.amir...@gmail.com mailto:raja.amir...@gmail.com wrote: Hi Iam processing dataset stream

Re: [rules-users] Avoid parsiong project pom.xml when running Drools

2014-03-13 Thread Mario Fusco
Ok Dominik, now the problem is clearer and I can explain you why it is also trying to parse the pom of the running project (I must admit I forgot this detail): it is just trying to figure out if you declared some additional repository in that pom so it could try to download the KieProject also

Re: [rules-users] IllegalStateException:

2014-03-13 Thread Raja Sekhar
Iam using Stateful sessions . On Mar 13, 2014 11:27 PM, Davide Sottara dso...@gmail.com wrote: Are you using stateful or stateless sessions? Davide On 03/13/2014 05:01 PM, Raja Sekhar wrote: Hi Can someone help me with this. Regards Raj On 13 March 2014 14:05, Raja Sekhar

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
Here is a better more complete stack trace: Exception in thread pool-9-thread-8 java.lang.NoClassDefFoundError: javax/pers istence/EntityManager at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Michael Anstis
That's something I'm working on right now. Some where in the dependency chain for @Component is EntityManager that is not included in your project's dependencies (I guess scope provided but it can occur for other reasons). The best we're going to be able to achieve is handle the exception better

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
Ok thanks. If there is anything I can do to help let me know. Joe From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis Sent: Thursday, March 13, 2014 1:51 PM To: Rules Users List Subject: Re: [rules-users] Pojo with spring dependency

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
For reference the uber jar approach also didn't work for this one. I created a jar with dependencies and added that and it still doesn't find the entity manager class. When adding spring-orm to the DWB manually (where the EntityManager lives) I get the error below: I'll keep after it to see

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Michael Anstis
Nice ;-) Do you get that error when uploading any JAR to the maven repository? What application server is this? Sent on the move On 13 Mar 2014 20:27, Joe White joe.wh...@recondotech.com wrote: For reference the uber jar approach also didn't work for this one. I created a jar with

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
I get it for any jar where the WB doesn't seen the pom and I have to enter the artifact information manually. Running on tomcat. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis Sent: Thursday, March 13, 2014 2:36 PM To: Rules

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Michael Anstis
Ok that explains it. Could you be kind enough to open a GUVNOR JIRA for this (stating what you've said here) please? Sent on the move On 13 Mar 2014 20:57, Joe White joe.wh...@recondotech.com wrote: I get it for any jar where the WB doesn't seen the pom and I have to enter the artifact

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Joe White
1.Done. This is GUVNOR-2084https://issues.jboss.org/browse/GUVNOR-2084 If you need help reproducing ping me on IRC (JoeW) and we can do a hangout or screenshare. I didn't attach a test case but described by steps. From: rules-users-boun...@lists.jboss.org

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Michael Anstis
Look at the pom generated for your project in the workbench (you'll need to use the administration perspective and select the pom.xml file). I suspect it contains a repository definition for localhost:8080 try changing this to the web context and port /maven2 is available on for your

Re: [rules-users] Pojo with spring dependency in DWB

2014-03-13 Thread Michael Anstis
Thanks for the JIRA. (If you implement a fix before we do, a pull request is always welcome! ) Sent on the move On 13 Mar 2014 21:02, Michael Anstis michael.ans...@gmail.com wrote: Ok that explains it. Could you be kind enough to open a GUVNOR JIRA for this (stating what you've said here)

Re: [rules-users] Question to Knowledge-Agent Behaviour

2014-03-13 Thread Davide Sottara
The ResourceChangeScanner will consider a resource modified if last modification last read. If your resource is a URL resource pointing to a file, the implementation (version 5.6, at least) will delegate to File.lastModified(). Make sure that whenever you (re)deploy your PKGs, the lastModified()