Re: [rules-users] Entry Point from parameter in Guvnor Decision Table?

2013-12-11 Thread Michael Anstis
Your best option would be to add a BRL Fragment column. You'd then have to add a "Free Form Text" condition, enter plain DRL using @{a-variable-name} as the entry-point in the DRL. With kind regards, Mike On 9 December 2013 23:41, dunnlow wrote: > manstis wrote > > Are you using a XLS decis

Re: [rules-users] Stateless session commands and ExecutionResults (5.5.0.Final)

2013-12-11 Thread Stephen Masters
Thanks for that, Wolfgang. I have been working on something else for a few days, but just switched over to batch execution, and that is giving me some appropriate results (my tests are passing). Which leads me to the question ... Given that Example 3.4.1 in the Drools 5.5.0.Final user guide doe

Re: [rules-users] Stateless session commands and ExecutionResults (5.5.0.Final)

2013-12-11 Thread Wolfgang Laun
The mean thing is that the code org.drools.command.CommandFactory uses the generic interface org.drools.command.Command for all commands without specifying the generic parameter with the many newXyz methods. If it were written well, it would tell you what to expect from the command execution,

Re: [rules-users] Stateless session commands and ExecutionResults (5.5.0.Final)

2013-12-11 Thread Stephen Masters
Hmm … so the use of batch execution instead of InsertObjectCommand improved things. However I have noticed that although rules are activating as expected, and facts are being inserted, my queries don’t seem to get any results. For instance with the following code: Based on a stateless session:

Re: [rules-users] Kie Work Bench missing repositories menu option

2013-12-11 Thread anjana.ackroyd
Yay! I found the conflicting process using that port and now its all golden . I see all the menu options. Although it would be nice to have it working on tomcat as well because thats the JVM we use enterprise wide. But for now I am going to go ahead and play with the work bench in jboss! Thanks

Re: [rules-users] Kie Work Bench missing repositories menu option

2013-12-11 Thread Mark Proctor
On 11 Dec 2013, at 16:54, anjana.ackroyd wrote: > Yay! I found the conflicting process using that port and now its all golden . > I see all the menu options. great :) > Although it would be nice to have it working on tomcat as well because thats > the JVM we use enterprise wide. But for now I

Re: [rules-users] Kie Work Bench missing repositories menu option

2013-12-11 Thread anjana.ackroyd
Sorry one last question hopefully To clone a repository on my machine I run git clone gitolite@vlslcdapp01:com.enterprise.service/service-rules-dsl In the Kie-wb I am trying to clone a repository , if I put the URL as git://gitolite@vlslcdapp01:com.enterprise.service/service-rules-dsl it do

Re: [rules-users] Drools 6 support for changeset

2013-12-11 Thread wtang
Hi just tried a simple example in which I loop and then I change the rule but I did not see my changes taking place. Please advice. while(true) { Thread.sleep(100); Message message = new Message(); message.setMessage("Hello World");

Re: [rules-users] Insert to non-existing entry point causing NPE in drools server?

2013-12-11 Thread dunnlow
Hmm, whelp, no, nothing empirical. I think in my head I am combining a few things I've read. In the Developers Cookbook (pg130) there is a comment that entry points can help reduce cross products and can be used to partition memory. I remember reading that the entry points are built during com

Re: [rules-users] Drools 6 support for changeset

2013-12-11 Thread Mark Proctor
we have unit tests that say otherwise: https://github.com/sotty/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java You’ll need to provide more information, or better still copy one of those unit tests to try and create a failed as

[rules-users] Drools 6.0.0: Please clarify: rdrl vs rdslr and what you can do with each

2013-12-11 Thread SrjTx
Drools 6.0.0 I have searched doc and google, but have not found what I am looking for - if you have link that would be great too. I am creating my first .dsl file and using them in a guided rule. I notice that when you select this, the file extension is rdslr versus rdrl. Also, you can access

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread vimalkansal
Hi Manstis, I am going to try out what you have suggested, but I have the following questions : In the first instance this answer looked alright, but then how is it a dynamic module? I was under the impression (as mentioned in the doco also) that by having kie-ci on the classpath, it can pull dow

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread vimalkansal
Hi Manstis, Also, I am running another instane of KIE-WB which points to the default M2_REPO i.e /home/user/.m2 and I I have done "build and deploy" to push the built jar to this repo. Then I have written a Java SE application and I am able to successfully dynamically download the jar and run the

Re: [rules-users] Drools 6 support for changeset

2013-12-11 Thread wtang
Oh, I don't doubt for a moment that it is working. I know it is working. What I am trying to figure out is what step am I missing. I installed drool 6.0 Eclipse plugin and simply added a loop in the out of the box hello word example. while the loop is running, I went into the eclipse editor, m

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread vimalkansal
And here is how my Java code looks like : public class HelloWorldRuleExecutor { public static void main(String[] args) { // TODO Auto-generated method stub String msg = "xxx"; KieServices ks = KieServices.Factory.get(); KieCo

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread Michael Anstis
I assume .m2, kie-wb and your application are all running on the same computer? Delete from your .m2 and try again (without having the repository in your pom). It should fail. When everything is in the same computer it is harder (for you) to replicate a remote maven repository. Deleting from .m2 c

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread vimalkansal
Yes, you are correct, my application, .m2 and kie-wb are running on the same machine., and I can see your point. But in the different instance(the scenario that I originally described) I have a web application, .m2 and kie-web running on the same machine and my code is not able to download the jar

Re: [rules-users] Drools 6 support for changeset

2013-12-11 Thread Mark Proctor
it’s not quite that automatic. You can only do updates vis the dynamic modules system. you have to build jars and update to the latest jar. Go through the KIE examples docs, and the unit tests I showed you. Mark On 11 Dec 2013, at 22:31, wtang wrote: > Oh, I don't doubt for a moment that it i

Re: [rules-users] Insert to non-existing entry point causing NPE in drools server?

2013-12-11 Thread Wolfgang Laun
On 11/12/2013, dunnlow wrote: > Hmm, whelp, no, nothing empirical. I think in my head I am combining a few > things I've read. > > In the Developers Cookbook (pg130) there is a comment that entry points can > help reduce cross products and can be used to partition memory. I remember > reading th

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread Michael Anstis
You don't need to run on 2 machines; I was trying to explain why the dependency could be resolved in kie-wb without the additional element in your consuming projects pom. You are correct that the pom is used at build time. There were lots of emails recently about your enquiry that showed the solu

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread vimalkansal
Thanks manstis. I will be eagerly looking forward to the solution. Vimal -- View this message in context: http://drools.46999.n3.nabble.com/Drools6-Having-trouble-in-using-kie-ci-tp4027208p4027238.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

[rules-users] Fwd: Re: [rules-dev] 6.0 issue with remote jars and dynamic modules

2013-12-11 Thread Michael Anstis
Sent on the move -- Forwarded message -- From: "Mark Proctor" Date: 6 Dec 2013 19:30 Subject: Re: [rules-dev] 6.0 issue with remote jars and dynamic modules To: "Rules Dev List" , "Rules Users List" < rules-users@lists.jboss.org> Cc: the jira https://issues.jboss.org/browse/DROOLS

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread Michael Anstis
Sent.. email titled something like "remote jars and dynamic modules". Sent on the move On 12 Dec 2013 07:26, "vimalkansal" wrote: > Thanks manstis. I will be eagerly looking forward to the solution. > > Vimal > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Drools6-

Re: [rules-users] Drools6 : Having trouble in using kie-ci

2013-12-11 Thread Michael Anstis
Please note this relates to remote maven repositories; I.e. where kie-wb (and it's maven repo) are on one machine; and your consuming application on another machine. If everything is on a single machine use of settings.xml is not needed as artifacts should be resolved against .m2. There is a thre