Re: [rules-users] Guvnor test case with fact with Object fields

2012-06-01 Thread Toni Rikkola
The latest Guvnor 5.4.0 should have better support for nested objects. If are already using it please open a Jira so we can improve the scenario editor. Toni On May 31, 2012, at 6:21 PM, mpgong wrote: Hello, I have a fact that has is also my entity model and it has a field that is a

Re: [rules-users] Drools 5.4.0.FINAL and OSGI. Unable to instantiate service for Class 'org.drools.concurrent.ExecutorProvider'

2012-06-01 Thread Per Sterner
Hello, perhaps it is an equinox /eclipse.osgi problem? The drools-api and the drools-core bundle have the same packages 'org.drools.concurrent'. I wrote a little test bundle which only does a dynamic-import like the 'drools-api' bundle. The class org.drools.concurrent.ExecutorProviderFactory

Re: [rules-users] Drools 5.4.0.FINAL and OSGI. Unable to instantiate service for Class 'org.drools.concurrent.ExecutorProvider'

2012-06-01 Thread Per Sterner
I just found an old eclipse forum entry: http://www.eclipse.org/forums/index.php/mv/msg/90154/278597/#msg_278597 On 01.06.2012 03:29, Mark Proctor wrote: Looks like you have some classpath issues and using the incorrect jar versions. On 29/05/2012 14:30, Per Sterner wrote: [ERROR] [System]

Re: [rules-users] Papers about Drools Verifier

2012-06-01 Thread Mark Proctor
On 01/06/2012 04:52, Jackson Cunha wrote: Thanks Mark! When my paper and my prototype is running I will show all results here to get feedback. ok, cool. I'd personally like to see more work on the verifier, ours is still too basic, and there is a huge amounts that can be done. Mario

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Matteo Cusmai
Hi all, nobody knows where drools looks for the file? Thanks, Matteo. On Thu, May 31, 2012 at 11:44 PM, Matteo Cusmai cusmaimat...@gmail.comwrote: Hi Chris, thanks a lot, but i am not using maven. I use ant to compile my project and i need that file at runtime. Bye, Matteo. On Thu, May

Re: [rules-users] Looking for Drools audit tool

2012-06-01 Thread paco
Thank you -- View this message in context: http://drools.46999.n3.nabble.com/Looking-for-Drools-audit-tool-tp4017686p4017720.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list

[rules-users] how to fetch fresh guvnor resources from drools-camel-server?

2012-06-01 Thread bhochhi
I am using drools-camel-server to fetch the remote guvnor resource as follows in knowledge-service.xml: drools:resource type=PKG source=http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/mypackage/Test;

[rules-users] Unable to upload POJO model jar to Guvnor 5.3.1 on Glassfish 3.1.2

2012-06-01 Thread claz12
Hi All. I have deployed Guvnor 5.3.1.Final (the Tomcat 6 war modified to add a glassfish-web.xml to set class-loader delegate=false) to Glassfish 3.1.2. I am able to create a new package and a new POJO model in the package, but when I try to upload the model jar file, I get the error Unable to

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Mario Fusco
Hi Matteo, Drools loads conf files from several places and merge them including home directory, meta-inf directory, etc. This is the class that does this job and as you can see it isn't changed in the last year:

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Matteo Cusmai
Hi Mario, i have tried to put it every where. The strange thing is that if i use 5.3 it is with file under /home/myhomefolder and if i use 5.4 i get this error: ERROR [2012-06-01 17:37:27,588] [VSensorLoader-Thread0] (ExpertSystemManager.java:63) - Unable to Analyse Expression $vehicle_type

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Edson Tirelli
Ok, it seems the problem is not the configuration file then, but the operator itself. There were some changes on how MVEL analyzes and executes expressions and this seems to be related to that... Can you provide an isolated test case with your operator so that we can reproduce the

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Mario Fusco
Matteo, I don't think the problem is in the resolution of the conf file. More likely the file is loaded and parsed correctly, but then, for some reason, the DRL compiler isn't able to find your custom evaluators. I'd need to reproduce your problem to better figure out what's going wrong. Can

[rules-users] Re-loading of guvnor resource at drools-camel-server

2012-06-01 Thread bhochhi
I am using drools-camel-server 5.4 final to execute the rules fetched from guvnor at follows: drools:resource type=PKG source=http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/mypackage/Test; basic-authentication=enabled username=test

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Matteo Cusmai
Hi Mario, i am trying to extract an example from my project, creating a simple drools project under eclipse. But when i try to create project with version 5.4 of drools, eclipse is not able to use 5.4. I get a compilation error on sample classes. i have added drools 5.4 as runtime into eclipse,

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Matteo Cusmai
Hi all, it seems that i have solved. the problem was, as said by Edson, in mvel analyze. In following rule: rule VehicleAtRouteStart-event dialect mvel no-loop when $obs: VehicleMatchedObservation( $vehicle_id : vehicle_id, $location : location, $road_line :

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Edson Tirelli
It still looks like a bug... if you can submit the test case, we can fix it. Edson On Fri, Jun 1, 2012 at 2:07 PM, Matteo Cusmai cusmaimat...@gmail.comwrote: Hi all, it seems that i have solved. the problem was, as said by Edson, in mvel analyze. In following rule: rule

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Matteo Cusmai
Can i send you an zipped eclipse project? On Fri, Jun 1, 2012 at 8:13 PM, Edson Tirelli ed.tire...@gmail.com wrote: It still looks like a bug... if you can submit the test case, we can fix it. Edson On Fri, Jun 1, 2012 at 2:07 PM, Matteo Cusmai cusmaimat...@gmail.comwrote: Hi

Re: [rules-users] need help or any links customizing guvnor

2012-06-01 Thread Abdullah Shaikh
I want to add a new editor to Guvnor. Some more details to help figure out what I am trying to do. If you go to Browse Assets By Category Home Mortgage Eligibility rule Underage and then click on open, you get this screen using which you can create/edit the rule graphically. Thanks,

[rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread chsekhar
I am doing a similar example as described in this example in the link from jboss website and go the section 6.1.3. How Decision Tables Work. (I have attached the image as well) http://drools.46999.n3.nabble.com/file/n4017733/example_decision_table.png

Re: [rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread Vincent LEGENDRE
... which would mean I should be able to pass the value present in both the columns in one method call. Or create a Pojo for your keys (you should have already one as java maps only have one key ...), instanciate it in the first column in a local (to RHS) variable, use setters to set

Re: [rules-users] need help or any links customizing guvnor

2012-06-01 Thread Michael Anstis
There was a few emails on this mailing list a couple of weeks ago about adding an additional file type for jBPM process files. Have a search for these. Adding a new editor relies upon much of what they covered. Out if interest what did you want to add? If of use to the community at large and you

Re: [rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread chsekhar
In the example you had given, how would I be able to pass keys from one ACTION to another in decision table? It cant be a global variable because this(keys) has to be a new instance per row. Is there some mechanism in decision table which would let me refer the values from column into another?

Re: [rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread Michael Anstis
You cannot merge multiple ACTION columns into a single DRL statement. If your individual key components can be bound as individual CONDITION Colum constraints the ACTION need only contain the value. sent on the move On 1 Jun 2012 21:18, chsekhar chandrasekha...@gmail.com wrote: In the

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Mark Proctor
On 01/06/2012 19:16, Matteo Cusmai wrote: Can i send you an zipped eclipse project? Please don't do that. follow the instructions in getting involved on how to submit unit tests: http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html Mark On

Re: [rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread chsekhar
I was able to merge data from multiple ACTION columns in decision table. First ACTION column: (kept all keys as comma separated in single column. we can have it in individual columns) KeyPojo keys = new KeyPojo($1,$2,$3); Second ACTION column: $myMap.put(keys, $param); This worked great.

Re: [rules-users] Drools Decision Table, multiple actions accumulation

2012-06-01 Thread Michael Anstis
But each column became a separate DRL fragment ;) but glad to read you got it working :) One for me to remember. Thanks Vincent sent on the move On 2 Jun 2012 01:47, chsekhar chandrasekha...@gmail.com wrote: I was able to merge data from multiple ACTION columns in decision table. First