[rules-users] Mvel in operator and Inline List Question (Elements with range)

2014-01-29 Thread mattmadhavan
Hello, I see the example mvel in operator for the inline array as follows: surgeryCode in [00, 12, 13, 15, 19, *20, 21, 22, 23, 24, 25*, 30, 33, 45, 48, 55, 56, 65, 66, 70, 80, 90, 99] If you notice above the codes *21 to 25* are contiguous (Range) Is it possible to specify in the list a

[rules-users] Drools - Processing large volume of (Same Type) Facts with muliple complex Rules groups

2014-01-29 Thread mattmadhavan
Hello, I have a few questions on Drools. * My client has millions of rows of Facts of same type , to which the rules are applied. The facts are never updated. * There is multiple set of Rule groups (Cancer type can be Breast/Colon/Thyroid etc), with each group containing multiple rules in a

Re: [rules-users] Batch processing large volume of Same type Of Facts

2014-02-07 Thread mattmadhavan
Hi Stephen, Thank you very much for your reply! I have another requirement. Each FACT produces set of records (ArrayList of results). Due to some constraint I need to keep each array set in the memory as a working fact because I need to have another rule that will evaluate the array list (for

[rules-users] Batch processing large volume of Same type Of Facts

2014-02-07 Thread mattmadhavan
Hello, I have millions of the same type of Facts which are read from the Datebase. The rules will go through each fact and produce an Array of derived records from the FACT. Do I need to process one FACT at a time or can I pass in say 500 FACTS at a time? I am using Stateless Session for this

[rules-users] Simple ruleflow and java conditionExpression example

2014-02-10 Thread mattmadhavan
Hello, I have the following requirements. I have 3 stages of rule-flow group execution. 1. Set of rules to evaluate validation (ruleflow-group Validation Group) 2. Set of rules to evaluate eligibility (ruleflow-group Eligibility Group) 3. Set of rules to compute Cancer Measures (ruleflow-group

[rules-users] Error parsing simple bpmn file - Null pointer exception

2014-02-11 Thread mattmadhavan
Hello, I am testing rule flow with simple flow - start---ruleTask--end I am not even able to parse a simple bpmn file. I am getting a the following errors! Caused by: j*ava.lang.RuntimeException: ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException* : null I

Re: [rules-users] java.lang.NullPointerException when using a custom operator

2014-02-13 Thread mattmadhavan
Hello, I am having a hard time with a custom operator. It works great in 5.2 but not in 5.6. Do you mind sharing your email ample for 5.6 please? I spent the whole day today on this issue. There are Any differences between a 5.2 5.6 and 6.0.x. Your example works great for 6.0.x btw.

[rules-users] Custom Operator - 5.4.0 works but nor not in 5.6.0.

2014-02-14 Thread mattmadhavan
Hello, I have written a drools custom operator called inlist. It takes two strings are parameters and works great in 5.4.0. I can do some thing like this. rule inList_1 dialect mvel when $cp3rRecord : Cp3rRecord (*primarySite*e inlist (C500-C505) ) then System.out.println

Re: [rules-users] java.lang.NullPointerException when using a custom operator

2014-02-14 Thread mattmadhavan
Hi Davide, The problem occurs here at my evaluator! Please note lines 1 and 2 and the third parameter to the evaluate function! It has changed from *'Object' *to *'FactHandle' *from 5.4.0 to 5.6.0. The first step return back the same factHandle object so the Casting fails on step 2). Please

Re: [rules-users] Custom Operator - 5.4.0 works but nor not in 5.6.0.

2014-02-17 Thread mattmadhavan
Hi Wolfgang, cannot cast primarySite to a FactHnadle is the out put I am receiving from the rule processing. The reality is that, there is an issue with my custom operator when I try to extract the value. Any ideas please? Thanks Matt -- View this message in context:

[rules-users] How to configure Sequential Mode with Spring for Stateless session

2014-02-20 Thread mattmadhavan
Hello, Can some one let me know how I can set sequential mode when I have a StatelessKnowledge Session configured using Spring? I have hundreds of Facts and they are identical instances and I do not need inference since I am only computing values based on each row and not changing any facts. I

[rules-users] Drools 6.x - Stand alone Examples!

2014-02-20 Thread mattmadhavan
Hello, I am looking for a sample of Drools 6.x example. For some reason I cannot resolve the Maven dependencies for the 6.x samples. I am good with 5.x. *DO I need to add any maven repository for the 6.x artifacts? Looks like they may not be present in the public Maven repo?* For instance none

Re: [rules-users] How to configure Sequential Mode with Spring for Stateless session

2014-02-20 Thread mattmadhavan
Hi Mark, Thanks for the reply and I appreciate it! I even tried creating a *rulebase.conf* file with the value *drools.sequential=true* in the classpath and it did not work. I do have a Spring based configuration for my custom operator, but I doubt if that overrides the configuration in the

[rules-users] Drools 6.x and Maven

2014-02-25 Thread mattmadhavan
Hello, I am having a hard time building any Drools 6.x examples! Maven just would not resolve any Drools 6.x dependencies. For example I am getting the following error when I tried to build a sample Are the Drools 6.x artifacts present in the Maven public repo? DO I need ton add any Drools

Re: [rules-users] Drools 6.x - Stand alone Examples!

2014-02-25 Thread mattmadhavan
HI Matt, I have downloaded your examples and want to try them out. But I having building -ANY- 6.x examples - not just your examples. Maven is not able to resolve any 6.x repositories. Any ideas please? When I tired to build your examples I am getting the following errors. Please note that I

Re: [rules-users] Drools 6.x and Maven

2014-02-25 Thread mattmadhavan
HI Mark, I tried the default version and also the version 6.0.1. I am getting the same error as follows: Its been the same issue I have been seeing for 6.x.x of Drools. DO I need to modify my pom.xml or may the the Sonatype server for any additional Maven repository path? Any help will be

Re: [rules-users] Drools 6.x and Maven

2014-02-25 Thread mattmadhavan
Hi Mark, I reviewed our Sonatype configuration. I have succeeded in getting the 6.1.0-SNPASHOT dependencies to resolve (but not the ki.spring). I am still having problem with the 6.0.1.Final. Based on the link you sent the Drools dependencies are in the public Maven repo. Not sure why I am not

Re: [rules-users] Drools 6.x and Maven

2014-02-26 Thread mattmadhavan
HI Matt, My apologies! There was a problem in our Sonatype and the settings.xml configuration. I have figured it out. Sorry for the confusion. And thanks for your great documented examples! Thanks Matt. -- View this message in context:

Re: [rules-users] Drools 6.x and Maven

2014-02-26 Thread mattmadhavan
HI Matt, Your first POM deps resolved but I had bunch of compilation errors. Can you please update your examples? I would like to down load them. Thanks Matt -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-x-and-Maven-tp4028312p4028364.html Sent from the Drools:

Re: [rules-users] Rule Flow Creation

2014-02-27 Thread mattmadhavan
HI Ray, Bear with me, I am kind of new to Drools my self. from What I understand .rf is old. You have to use the new jBPM to which the Ruleflow id part of. The rule flow file extension is .bpmn. Also I am afraid the Eclipse plugin does not do a good job of creating the good rule flow due to its

[rules-users] Drools 6.0.1 with Spring - Custom Operator - Spring configuration for custom operators

2014-02-27 Thread mattmadhavan
Hello, I have defined a Drools custom operator which works great in Drools 5.4.0 and I am able to configure it to configure itvia spring Spring as follows. bean id=lt;binListED class=org.facs.ncdb.drools.utils.InListEvaluatorDefinition */ drools:kbase id=breastMeasureKBase

Re: [rules-users] Rule Flow Creation

2014-02-27 Thread mattmadhavan
Hi Ray, Like I am afraid, this is left over document from the old days. You have to look into jbpm, its actually aneat. But I am afraid Eclipse IDE is not gonna cut. If you are looking for simple rule-flow you can achieve it with Salience. What are your requirements. Thakis Matt'M -- View

Re: [rules-users] Rule Flow Creation

2014-02-27 Thread mattmadhavan
Steve, Also I recommend you ask your question in its own separate thread. I am afraid other users may not watch this thread because 1. Its old 2. Not relevant to the question you have Thanks Matt'M -- View this message in context:

[rules-users] Kie-sprind.xsd - Are the configuration options limited compare to drools-spring.xsd?

2014-02-27 Thread mattmadhavan
Hello, I am having hard time moving from 5.4 to 6.x due to the Spring configuration, viz configuraion options fro Custom operators Evaluators, Custom accumulators etc. Can some one please let me know? This is what see for the configuration option for kie-spring.xsd (Drools 6.1) /Look how

Re: [rules-users] Drools 6.0.1 with Spring - Custom Operator - Spring configuration for custom operators

2014-02-27 Thread mattmadhavan
Hello, Anyone out there please? Thanks Matt'M -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-1-with-Spring-Custom-Operator-Spring-configuration-for-custom-operators-tp4028377p4028393.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Drools 6.0.1 with Spring - Custom Operator - Spring configuration for custom operators

2014-02-27 Thread mattmadhavan
Would you let me know once you figure out? :) -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-1-with-Spring-Custom-Operator-Spring-configuration-for-custom-operators-tp4028377p4028395.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Does drools generate document from drl files?

2014-02-28 Thread mattmadhavan
Hi Zhao, I have a similar requirement. DO you have any solution for this? Did you find something or you created your own solution? I would appreciate if you can share your knowledge on this with me. Thanks Matt -- View this message in context:

Re: [rules-users] kie-sprind xsd for spring 4

2014-02-28 Thread mattmadhavan
Hi Stephen, Thank you and I will review your code soon. My client is still at Spring 3.x and we are not moving to Spring 4.x anytime soon. Does your solution help in this situation? Thanks Matt -- View this message in context:

[rules-users] Guvnor - Importing Drl file and rule display order

2014-02-28 Thread mattmadhavan
Hello, Is there any to to display the rules that are imported to Guvnor displayed in the order they were written in the DRL file? Or display them in the order of their Salience? Thanks Matt -- View this message in context:

Re: [rules-users] Guvnor - Importing Drl file and rule display order

2014-03-03 Thread mattmadhavan
Hello, I have a long drl file that was generated from a custom rule engine(due to historica reasons). I have a long list of rules - in certain order . I imported the drl file from the Gunnor GUI. I did a Create New from the knowledge Base view and chose the import drl file option. My problem is

Re: [rules-users] Guvnor - Importing Drl file and rule display order

2014-03-03 Thread mattmadhavan
Humm, Is there any other Cleaner way please? Thanks Matt'M -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Importing-Drl-file-and-rule-display-order-tp4028432p4028460.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-03 Thread mattmadhavan
Hello, I have imported bunch of rules (.drl file) into the Guvnor. Then I imported the Jar file containing the Facts and my Custom Operator and also the static methods into the same Guvnor package of the rules. When I try to validate the rules, I am getting errors saying that it is not able to

Re: [rules-users] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-03 Thread mattmadhavan
Humm, All my fields in the FACT/record are public fields with *No Getters and Setters*. Not sure if this is an issue! Could some one answer this please? Had a long day,, giving up and going home. will pick it up tomorrow. Thanks Matt'M -- View this message in context:

Re: [rules-users] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-04 Thread mattmadhavan
Hi there, Sorry don't know your real name. Yes I generated the getters and setters and the fields are being found! Not sure why but it works. But now I am facing issues with my custom operator. Its not finding it! Any ideas how I would go solving it? Thanks Matt -- View this message in

[rules-users] Guvnor - Custom operator problem (Not finding it)

2014-03-04 Thread mattmadhavan
Hello, I have written a custom operator called inlist and it works great in 5.4.0 (not in 5.6.0). When I import the rules to Guvnor my rule validation fails with the following error: /[Administration and Timing of RT - Date RT started unknown, assumed started more than 365 days of diagnosis]

[rules-users] Guvnor - How to delete assests

2014-03-04 Thread mattmadhavan
Hello, I see o way to delete packages and rules from within Guvnor. Any ideas how do I do it? Thanks Matt -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-How-to-delete-assests-tp4028491.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread mattmadhavan
Hiell, I want to import existing drl files with about 60 rules to drools work-bench. Not sure how to do it. I went through the manula but am not clear how to do it. Any ideas please? Also can some one point me to some additional documentaion? Thanks Matt -- View this message in context:

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread mattmadhavan
HI Alexandre, Sorry to say I do not have anything set up. I have a .drl file with about 60 rules and couple of Jar file off my Eclipse. I want to import the drl file and the jars into the work bench inside a project. I want to set it up such that the analysts can write additional rules and be

Re: [rules-users] Guvnor - Custom operator problem (Not finding it)

2014-03-04 Thread mattmadhavan
Hi Davide, Sorry but any idea or point me to the rt direction on how to add custom operator in Guvnor? Thanks Matt'M -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Custom-operator-problem-Not-finding-it-tp4028490p4028500.html Sent from the Drools: User forum mailing

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread mattmadhavan
Hi Alexandre, Could you please elaborate on couple of points below or point me to the rt documentation? * What do you mean by *prompt for GAV info* ? * What do you mean by *clone using ssh git, add your rules* ? * Where can I get the demo? Thanks Matt'M -- View this message in context:

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread mattmadhavan
Hi Manstis, Thank very much for your reply! Please bear with me if I repeat my self with my questions. This is the scenario! * We are moving away from a custom rule engine to Drools * We are converting the existing rules to .drl using a parser * I have an standard eclipse project which I am

[rules-users] Some basic questions/assumptions on Drools Work-bench/Guvnor

2014-03-04 Thread mattmadhavan
Hello, I have some basic questions on the Drools workbench. Can some one please validate my assumptions? 1) Drools workbench/Guvnor is not a replacement for Eclipse. 2) Geeks like me develop the applications in Eclipse 3) Drools workbench will be mainly used by the Rule authors (Business Analysts

Re: [rules-users] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-05 Thread mattmadhavan
Hi Rich, I have created a custom operator like in , contains etc (similar to mvel). My operator is called inlist. For instance I can check if a value is present in a range of list values. Eg, $record (PRIMARY_SITE *inlist *(C500-C521, C533, C534, C560-C575)) Please note the value ranges! I

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-05 Thread mattmadhavan
HI Mantis, I think I am getting it! You pretty much want me to export clone my existing maven project in Eclipse IDE to a GIT repo and suck it in to the Drools WorkBench. I have limited experience in GIT. I can do it, But can you please confirm if this is what you meant? Also one more

[rules-users] Drools 6.x and Custom Operators(Evaluators) and Accumulators - Using them as regular functions?

2014-03-05 Thread mattmadhavan
Hello, Recently I read/cam across couple of posts regarding Custom operators and Accumulators in Drools 6.x. I seems that I can import them as functions and use them directly without having to declare them in the configurationBuilder etc. Can some on Elaborate on this one please? Do I still

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-05 Thread mattmadhavan
HI Mantist, I think I am really confused now. I have a working Drools 5.4 application (5.6 has issues with Custom operators) in eclipse. I am able to Unit test my rules. I want to use either Guvnor or the workbench so that my analysts can author/test their rules. Can I import an existing

Re: [rules-users] Drools 6.x and Custom Operators(Evaluators) and Accumulators - Using them as regular functions?

2014-03-05 Thread mattmadhavan
Hello, I am still suck on Drools 5.4/5.5 since I have issues with Custom operators/Evaluators in 5.6. I am not able to move to Drools 6.x because the spring configuration is screwed up. There is no option to configure Custom operator/Evaluators in kie-spring. Looks like I just cannot move to 6.x

[rules-users] Drools 6.x and Custom OPeratot/Evaluators with Kie-Spring

2014-03-06 Thread mattmadhavan
Hello, Has any one implemented a custom operator/evaluator in Drools 6.x and using kie-spring? I doubt I am the only one out there trying to work with a custom operator/evaluator in Drools 6.x and Kie-Spring. Can some one please make a suggestion? Or point me to the right direction? Thanks

[rules-users] Guvnor - Importing Drl FIle and its associated model

2014-04-10 Thread mattmadhavan
Hello, In have a working Drools project. I would like to import existing DRL files and associated Model file. I have a custom operator as well. I have packaged the Model and necessary operators and util global functions into a jar with their dependencies. How do I import my DRL and the model jar

[rules-users] All Drools examples 6.x fail on Mvel dependency error

2014-08-05 Thread mattmadhavan
Hello, I have downloaded the new Drools 6.x distribution. All the example tests fail (out of the box) with the following stacktrace. *java.lang.NoClassDefFoundError: org/mvel2/ConversionHandler* at

Re: [rules-users] All Drools examples 6.x fail on Mvel dependency error

2014-08-05 Thread mattmadhavan
This happens even after I added the following dependency dependency groupIdorg.mvel/groupId artifactIdmvel2/artifactId /dependency -- View this message in context:

Re: [rules-users] Drools 6.x and Custom Operators(Evaluators) and Accumulators - Using them as regular functions?

2014-08-05 Thread mattmadhavan
Hello, Do you have any more information on the Custom Evaluators/Operators for Drools 6.1? Any information will be appreciated. Thanks Matt -- View this message in context:

Re: [rules-users] Drools 6.x and Custom Operators(Evaluators) and Accumulators - Using them as regular functions?

2014-08-05 Thread mattmadhavan
Hi Mark, My apologies if I am not clear with my question. I am looking for a way to create and use my own custom evaluator. (I know its similar to custom evaluator) I have a written a custom eval operator called *inlist* that will look to see if the left hand is in a range of values as follows:

Re: [rules-users] All Drools examples 6.x fail on Mvel dependency error

2014-08-06 Thread mattmadhavan
HI Mario, Thank you very much for your reply. I downloaded 6.1.1-SNAPSHOT I imported the whole project into Eclipse (Spring STS), JDK 1.7 Windows. I didn't run runExamples.sh. I tried to run them as JUnit tests in Eclipse. I hope this explains what I am trying to do. Thanks in advance! Matt'M

Re: [rules-users] Drools 6.x and Custom Operators(Evaluators) and Accumulators - Using them as regular functions?

2014-08-06 Thread mattmadhavan
Hello Mark et all, I referred the source of the class (FOr API etc) of the built-in evaluator below : *org.drools.core.base.evaluators.MatchesEvaluatorsDefinition* and* drools.packagebuilder.conf* It was a breeze, took me less than 10 minutes! As Mark Proctor mentioned, lots of plumbing has

[rules-users] kie:module/kie:base Question

2014-08-08 Thread mattmadhavan
Hello, Seems like the only option I have for specifying mu.drl files is via package nmae as follows: is there anyway to specify individual .drl files instead of *packeages* ? Something lke kie:kbase name=drl_kiesample3 source=classpath:rules/mydrl.drl Please note that I am trying to specify

[rules-users] Creating simple Ruleflow via API and Spring

2014-08-11 Thread mattmadhavan
Hello, My application is mostly rule driven and we do not have any states. We we are processing about 30 million facts in a stateless session using bunch of rules (DRL). I have a simple ruleflow requirement. I am looking for an example where I can create the rule flow via an API even better

[rules-users] Drools bpmn gateway constraints questions

2014-08-12 Thread mattmadhavan
Hello, I am trying create a few constraints (XOR). I have a .DRL file with 3 agenda-group. I am also using a custom evaluator and few global static functions. Mine is a Stateless Session with bunch of records (Caner records) 1. How do I refer to the current fact? - Can I do something like

[rules-users] Starnge problem with AbstractKieModule while testing, ignores classes folfer

2014-08-12 Thread mattmadhavan
Hello, While unit testing some of my DRL files I notice that, *AbstractKieModule * does not look at main classpath. It only checks for the target\test-classes and not target\classes folder at all! I see the following warning on the coonsole! *2014-08-12 14:15:25,426 [AbstractKieModule] [main]

[rules-users] Anyone? Re: Drools bpmn gateway constraints questions

2014-08-13 Thread mattmadhavan
Anyone out there please? Thanks Matt -- View this message in context: http://drools.46999.n3.nabble.com/Drools-bpmn-gateway-constraints-questions-tp4030640p4030646.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] Starnge problem with AbstractKieModule while testing, ignores classes folfer

2014-08-13 Thread mattmadhavan
Hi Mark, Sorry I forgot to mention. I am using kie-spring to load everything. I am using spring beanrefCOntext for testing. I did move the module(Spring) to the META-INF folder. The result is the same. Any ideas please? Thanks Matt'M -- View this message in context:

Re: [rules-users] Starnge problem with AbstractKieModule while testing, ignores classes folfer

2014-08-13 Thread mattmadhavan
Hi Mark, This definitely seems to be a problem. I placed my spring k-module file called *kmodule-spring-breast.xml * under src/mail/resouces/META-INF folder, I am still getting the error. But I am referencing the kmodule-spring-breast.xml from a Spring Test file. Its looking for the .DRL file

[rules-users] Kie-spring Issues - Not able to autowire sessions

2014-08-16 Thread mattmadhavan
Hello, I have the following kie-spring xml definition to test my custom evaluater. I am not able to inject neither the *IN_LIST_KBase *nor the /IN_LIST_KSession/ in my test class as follows: But i am able to look it up via the applicationContext as follows: I am bit confused! Any ideas

[rules-users] Kie-Spring Issue, not able to created Session as prototype

2014-08-16 Thread mattmadhavan
Hello, I have the following kie-spring xml definition to test my custom evaluater. Please note the * type=stateless scope=prototype* in the xml configuration. Everytime this session is looked up, I want a new instance of the StatelessKieSession. I am getting the same instance for both the

Re: [rules-users] Kie-spring Issues - Not able to autowire sessions

2014-08-18 Thread mattmadhavan
Hi Vinod, Thanks for your answer. I am using Drools 6.1.0.Final and I changed the postprocessor to the on you suggested. Its still not working. Any ideas? Thanks Matt -- View this message in context:

Re: [rules-users] Anyone? Re: Drools bpmn gateway constraints questions

2014-08-18 Thread mattmadhavan
Hi Salaboy, Thank you very much for your reply. I am still not clear on this? * The current record where??? If you have multiple CancerRecord(s) each of them will match with that conditional element. If you have a business process with a process variable you should point to that variable instead