Re: [rules-users] KieScanner with remote repository?

2014-04-14 Thread vvicky72
I have also tried setting these before I kickoff the scanner. java.lang.System.setProperty("M2_HOME", "/opt/eaitools/maven/apache-maven-3.2.1"); java.lang.System.setProperty("M2", "/opt/eaitools/maven/apache-maven-3.2.1/bin"); java.lang.System.setProperty("MAVEN_HOME", "/opt/eaitools/maven/apache-

Re: [rules-users] KieScanner with remote repository?

2014-04-14 Thread vvicky72
I have. That's how mvn install downloads it to the local repository. Date: Mon, 14 Apr 2014 16:56:45 -0700 From: ml-node+s46999n4029262...@n3.nabble.com To: vvick...@hotmail.com Subject: Re: [rules-users] KieScanner with remote repository? You need to update your settings.xml to point t

Re: [rules-users] KieScanner with remote repository?

2014-04-14 Thread Mark Proctor
You need to update your settings.xml to point to your remote repository. The docs provide information on the settings.xml configuration. Mark On 15 Apr 2014, at 00:50, vvicky72 wrote: > I am able to get KieScanner (6.1 beta) to work on my local maven repository > using "LATEST". But everytime

[rules-users] KieScanner with remote repository?

2014-04-14 Thread vvicky72
I am able to get KieScanner (6.1 beta) to work on my local maven repository using "LATEST". But everytime I update the rules on workbench, I have to manually run mvn install in order to update my local repository so that KieScanner can pickup the changes. Is that how it is? Or is it possible to for

Re: [rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Michael Anstis
H... not a family film. Sent on the move On 14 Apr 2014 23:18, "Michael Anstis" wrote: > That'd be great :-) > > Saw III looks promising ;-) > > Sent on the move > On 14 Apr 2014 23:13, "Joe White" wrote: > >> Thanks Mike. I see that in the Rule Templates section of the docs. If >> you wan

Re: [rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Michael Anstis
That'd be great :-) Saw III looks promising ;-) Sent on the move On 14 Apr 2014 23:13, "Joe White" wrote: > Thanks Mike. I see that in the Rule Templates section of the docs. If > you want I’ll add that the Guided Decision Table of the documents as well > and issue a pull. Let me know. > > > >

Re: [rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Joe White
Thanks Mike. I see that in the Rule Templates section of the docs. If you want I’ll add that the Guided Decision Table of the documents as well and issue a pull. Let me know. Joe From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis

Re: [rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Michael Anstis
You need to use a "Template variable" in the BRL fragment. ServiceLineStatusInfo( claimStatusCodes contains "@{param}") On 14 April 2014 23:01, Joe White wrote: > Does the workbench extended entry guided decision table support this > kind of syntax: > > ServiceLineStatusInfo( claimStatusCodes

[rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Joe White
Does the workbench extended entry guided decision table support this kind of syntax: ServiceLineStatusInfo( claimStatusCodes contains "$param" ) Where $param is replaced with the value of the column? When I add that through New Column->Add a Condition BRL Fragment->Free Form DRL all I get is a c

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Cwen
Thanks! That helped. I am analyzing the memory usage and trying to convert our old rule syntax... Will update with you later. Thank you. -- View this message in context: http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-registeredResourceMap-memory-issue-tp4029216p4029255.html Sent from the

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Davide Sottara
MVEL glitch, try size() > 0 On 04/14/2014 11:59 AM, Cwen wrote: > Thank you Davide. That helped. I re-compiled the pkg and it got loaded > successfully. However the run execution is throwing the following errors. I > am looking into it. Not sure if that's something you have any insight. > > [Error

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Cwen
Thank you Davide. That helped. I re-compiled the pkg and it got loaded successfully. However the run execution is throwing the following errors. I am looking into it. Not sure if that's something you have any insight. [Error: could not access: size; in class: java.util.ArrayList] [Near : {... size

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Davide Sottara
Are you downloading a compiled PKG resource? You'd have to rebuild the PKG with 5.6, or use the source DRL.. On 04/14/2014 11:08 AM, Cwen wrote: > Davide, > I tried change our methods signature and run the application. Getting > following stack trace when calling KnowledgeAgent.applyChangeSet(Res

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Cwen
Davide, I tried change our methods signature and run the application. Getting following stack trace when calling KnowledgeAgent.applyChangeSet(Resource resource): java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage at org.drools.a

Re: [rules-users] Problems deploying war

2014-04-14 Thread Michael Anstis
You'll need to add the additional libraries to /lib and configure Catalina with the additional "Valve", as described in previous emails. These configure Tomcat to use the tomcat-users.xml file. On 14 April 2014 14:36, Ven Tadipatri wrote: > You're right - I'm getting closer :) > Now, the > ht

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Davide Sottara
Ok, perfect. That internal "interface" was indeed changed. Please note that there is a potential problem with the implementation of the custom evaluators in 5.6. It has been fixed in 6.x, but it should probably be backported. Let me know if you have problems. Davide On 04/14/2014 08:29 AM, Cwen wr

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Cwen
Davide, please ignore my last post. I looked into the code more and it's the interface changes Evaluator cause the errors. evaluate() methods now have InternalFactHandle as an argument instead of Object. Let me work on those and I will update with you if I see more problems. Thanks. -- View this

Re: [rules-users] KnowledgeAgentImpl registeredResourceMap memory issue

2014-04-14 Thread Cwen
Hi Davide, Here are some of the errors I am getting after upgrade to 5.6.0.final. Looks like we are extending class of BaseEvaluator. Any quick way to work around it? Thank you! -- View this message in context: http://drools.4

Re: [rules-users] Problems deploying war

2014-04-14 Thread Ven Tadipatri
You're right - I'm getting closer :) Now, the http://localhost:8080/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0/ url comes up, but when I try to log in with the user and password in my tomcat-users.xml file, it doesn't log me in. I was

Re: [rules-users] Problems deploying war

2014-04-14 Thread Michael Anstis
You're almost there by the look of it!!! I replied to your other questions about why the workbench is trying to access git.. you can disable this and then you shouldn't get the error you paste (I assume you can't access github.com from where you're trying to deploy). The JBoss AS7 WAR works "out

Re: [rules-users] Problems deploying war

2014-04-14 Thread Ven Tadipatri
I'm not quite sure why it's so challenging to get the war deployed with Tomcat. Is it easier to deploy the war with Jboss? These are the exceptions I'm getting, even after adding "-Dorg.kie.demo=false" to the CATALINA_OPTS in catalina.sh I want to disable th

Re: [rules-users] Problems deploying war

2014-04-14 Thread Michael Anstis
If apply the additional configuration you are telling Tomcat to use Users defined in /conf/tomcat-users.xml I modified the WAR by unzipping it, modifying the relevant files and then zipping it back into a WAR before deploying. On 14 April 2014 13:53, Ven Tadipatri wrote: > Hi Michael, >Un

Re: [rules-users] Problems deploying war

2014-04-14 Thread Ven Tadipatri
Hi Michael,    Unfortunately I can't seem to get the 6.0.1 version up and running. I followed the steps below, finding the 3 jars listed below online. But still, Tomcat just hangs for a bit, then throws a bunch of severe warnings. There don't seem to be any

Re: [rules-users] Problems deploying war

2014-04-14 Thread Michael Anstis
http://search.maven.org/#search%7Cga%7C1%7Ckie-tomcat-integration http://search.maven.org/#search%7Cga%7C1%7Cjavax.security.jacc-api On 14 April 2014 13:21, Ven Tadipatri wrote: > Hi Michael, >Thank you for the instructions. I wasn't able to find these > instructions anywhere, but I'll ch

Re: [rules-users] Problems deploying war

2014-04-14 Thread Ven Tadipatri
Hi Michael,    Thank you for the instructions. I wasn't able to find these instructions anywhere, but I'll check the readme again. Where can I get the jacc and kie-tomcat-integration jar files from? Thanks, Ven On 04/11/2014 10:49 A

Re: [rules-users] Drools causes switch(enum e) to break?

2014-04-14 Thread Leonard93
Well I don't know. It is just a guess that I made since it is the only lead I have on it so far. What I have tried so far: -The error happens in Eclipse Kepler and Juno when opening the same project. -A netbeans project with the drools binaries imported (opened the same project still) works fine w

Re: [rules-users] Drools causes switch(enum e) to break?

2014-04-14 Thread Wolfgang Laun
This would mean that setting a project as "Drools project" has an impact on the compilation of plain old Java code? That would be an evil bug in some Drools plugin. Posting all the details might interest the Drools developer group. -W On 14/04/2014, Leonard93 wrote: > The enum is called RuleType

Re: [rules-users] Drools causes switch(enum e) to break?

2014-04-14 Thread Leonard93
The enum is called RuleType, sorry. I am posting this here because this error only happens within Drools projects, in normal java projects this error does not happen. The error is /"Cannot switch on a value of type RuleType. Only convertible int values or enum variables are permitted"/ no more, no

Re: [rules-users] Drools causes switch(enum e) to break?

2014-04-14 Thread Wolfgang Laun
RuleType*s* or RuleType? Also, you are posting Java code. How is this related to Drools? Above all, post error messages in full, stating when and due to which command they are emitted. -W On 14/04/2014, Leonard93 wrote: > So I have a really weird problem and I think it could be relate-able to

[rules-users] Drools causes switch(enum e) to break?

2014-04-14 Thread Leonard93
So I have a really weird problem and I think it could be relate-able to Drools, or maybe not but maybe some people here have seen it before. I have a simple enum called 'RuleTypes' which is defined in its own file. I have somewhere in my class a switch statement where I use the enum like this: (T

Re: [rules-users] how KnowledgeAgent to use guvnor cluster?

2014-04-14 Thread Michael Anstis
Presumably your cluster is fronted by a load-balancer? I'd think (but not tried) you'd simply be able to configure KA to use your load-balancer's address? On 14 April 2014 03:23, 窦晓峰 wrote: > Hello, every one: > > I am newbie for drools and guvnor, so excuse me if the question > is du

Re: [rules-users] Pooling stateful sessions to have threaded executions of a ruleset

2014-04-14 Thread Maxime Falaize
I'm disposing after use because if i'm not the working memory is not empty between 2 calls right ? And I am saying that I'm using them as a pool because I have 5 sessions that could be used at the same time, which is impossible if I declare only one. If you have recommandation for my use case, ple