Re: [rules-users] Drools5 in tomcat 5

2010-05-14 Thread Premkumar Stephen
Ruben, Drools Server is a web service which executes rules that can be deployed from Guvnor. Regards, Prem 2010/5/14 Rubén Marrero > Oh! > > I'm tempted to ask _why_ did anyone think that having a great web interface > where you can create, test, store & version (I would think that at least >

Re: [rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
OK...the following rules seems to work: rule "Assign awardable activity to default context" ruleflow-group "select qualified activity" when $context : ResultContext( activity != null && activity.qualifiedActivity == null ) $

Re: [rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
OK... Did some digging in drools source code and found this: Line 151 in RightInputAdapterNode: // retrieve handle from memory final InternalFactHandle factHandle = (InternalFactHandle) memory.remove( tuple ); Tuple value: [fact 0:-1:0:1711615772:41:null] [fact 0:40:260358:2136057917:40:com.bi

Re: [rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
Oh...and I am using drools 5.1.0-M1...Jdk 1.6 rev 20 -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/NullPointerException-modify-tp818403p818414.html Sent from the Drools - User mailing list archive at Nabble.com. _

[rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
Hi, I am getting a very puzzling NullPointerException when I call modify() on my object in working memory. I have the following rule: rule "Assign awardable activity to default context" ruleflow-group "select qualified activity" when $context : ResultContext( ac

Re: [rules-users] Drools5 in tomcat 5

2010-05-14 Thread Esteban Aliverti
Again, I think drools-server or drools-pipeline is your answer. Try to search for examples using them. As I already said, I'm not an expert in this area :( 2010/5/14 Rubén Marrero > Oh! > > I'm tempted to ask _why_ did anyone think that having a great web interface > where you can create, test,

[rules-users] How to find ALL active sub/processes for a root process instance?

2010-05-14 Thread tolitius
Having several active processes ( parent + its subprocesses + subprocesses of the parent subproccesses ): mysql> select InstanceId, processId, state from processinstanceinfo; +++---+ | InstanceId |processId | state

Re: [rules-users] Drools5 in tomcat 5

2010-05-14 Thread Rubén Marrero
Oh! I'm tempted to ask _why_ did anyone think that having a great web interface where you can create, test, store & version (I would think that at least exposing and securing) business tulers simply should fall short of _executing_ said rules? If Guvnor (or some other component, I'm learning

Re: [rules-users] Jbilling Drools performance

2010-05-14 Thread Greg Barton
No problem.  I'm not sure how you'd do this in a decision table (it's probably pretty trivial) but in DRL you'd do: rule "makePhoneNumber" when   s: String() then   insert(new PhoneNumber(s));   retract(s); end With two caveats: 1) you need some conditions on the String matched if there are o

Re: [rules-users] Jbilling Drools performance

2010-05-14 Thread Antonio Anderson Souza
Dear Greg, Thanks very much for your reply. I'm using sequential mode = true Is there a way to create this PhoneNumber class, and convert the String to the PhoneNumber object inside the Drools? Because I'm using a system called JBilling and it send the phoneNumber as a String. Sorry if those ar

Re: [rules-users] Access to variables form sub-flows

2010-05-14 Thread nanic23
Hi PVM, You have to declare the variable in both flows, the parent flow as well as the sub flow. Then you also have to map it to the sub flow node. To do that, in the parent flow click the sub flow node and in the properties map the variable in "Parameter In Mapping". I hope it helps :) -- Vie

Re: [rules-users] Jbilling Drools performance

2010-05-14 Thread Greg Barton
Right off the bat I'd say try to get rid of the eval usage.  Can you put the phone number into an object like this: class PhoneNumber {   private char digit0;   private char digit1;   ///...same for the rest of the digits   public char getDigit0() { return digit0; }   public char getDigit1() {

[rules-users] Jbilling Drools performance

2010-05-14 Thread Antonio Anderson Souza
Dear All, I'm deploying a JBilling using Drools in a Telecom Carrier in Brazil, and I'm using Decision tables in xls files to execute the pricing, my pricing table has about 40.000 rules, and I'm getting a terrible performance about 1.5 minute to execute the price of each CDR (Call Detail Record)

[rules-users] Schedule Rules to Fire in Drools Expert

2010-05-14 Thread andre . fonseca
Hi all, It's possible to schedule (and reschedule) rules to fire in Drools Expert? As my understood the Agenda is a kind of TODO list right? Can I reorder the priority of that list so? Could someone give-me and idea (a pseudo-code or something like that) to show that concept? Thanks In Ad

Re: [rules-users] Drools5 in tomcat 5

2010-05-14 Thread Esteban Aliverti
Bad news! Guvnor doesn't execute the rules! It only acts as a repository! You can create your rules, test your rules and versioning them too, but if you want to execute them in a real business scenario, you have to code it. I know Drools already has some modules to do what you are trying to achieve

Re: [rules-users] Drools5 in tomcat 5

2010-05-14 Thread Rubén Marrero
The idea is to use Guvnor as a REST-accessible BRMS. We'll design, edit, test rules in guvnor, then execute them from the PHP web app in the background (with cURL or something ) or maybe we'll use proper webservices, as long as we can keep thing simple. Since we are already using tomcat 5 a

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-14 Thread malkhafaji
OK. So, I did an isolated test, and only tested two KP including this bad one. Both packages have their complete set of rules. But now, the other package is able to remove this faulty one. So, it is when I had my complete set of KPs (about 10 of them) all active, and then attempted to remove this

Re: [rules-users] Entry-Points can cause NullPointerExceptionand/or no rule firing

2010-05-14 Thread Mark Proctor
Vitor, Please stop replying to posts with unrelated topics and just changing the title, it messes up the threaded view in most people's email app. See here for more details on netiquette: http://www.jboss.org/drools/lists.html Mark On 14/05/2010 15:51, Makewise - Vitor Rui Mendonça wrote:

Re: [rules-users] ClassCastException: org.drools.reteoo.RuleTerminalNode$TerminalNodeMemory cannot be cast to org.drools.reteoo.EvalConditionNode$EvalMemory

2010-05-14 Thread Paul Ryan
Thank you Edson and no problem on the reply time I completely understand. -- Paul Ryan On May 11, 2010, at 6:27 PM, Edson Tirelli wrote: Paul, Sorry for taking long to answer but I am on vacations with limited internet connection. You can find the changeset for that fix here: https://j

Re: [rules-users] Entry-Points can cause NullPointerExceptionand/or no rule firing

2010-05-14 Thread Makewise - Vitor Rui Mendonça
Hi Greg! Thanks for your quick answer. I’m having some trouble with absence of events in Drools (I’ve send some emails on the mailing list regarding that) and I personally think it’s some kind of bug (mine or, probably, drools). So, I’m looking for some help. Instead of explaining all ov

Re: [rules-users] Entry-Points can cause NullPointerException and/or no rule firing

2010-05-14 Thread Greg Barton
JIRA issues are for reporting bugs in drools.  Is there a bug you're reporting or do you want help with this particular problem?--- On Fri, 5/14/10, Makewise - Vitor Rui Mendonça wrote:From: Makewise - Vitor Rui Mendonça Subject: [rules-users] Entry-Points can cause NullPointerException and/or no

[rules-users] Entry-Points can cause NullPointerException and/or no rule firing

2010-05-14 Thread Makewise - Vitor Rui Mendonça
Hi again. First of all, I'm running Drools 5.1.0.SNAPSHOT on Windows and Eclipse 3.4. I've submitted a Jira Issue (https://jira.jboss.org/jira/browse/JBRULES-2511): " I've got a system that receives transactions. I want to implement the following rules: - raise an alarm(alarm event) whe

[rules-users] Access to variables form sub-flows

2010-05-14 Thread pvm
hi, i've create a working set of rules via the Eclipse IDE. I've now factored my rule set into a sub flow that i want to call twice - each time with differrent parameters. i've created the sub-flow .rf file, and added a sub-flow call to it in my main flow. I've defined variables for the sub flow b

[rules-users] Guvnor meant for business users?

2010-05-14 Thread nxg912
Hello All, We are evaluating Drools for our production implementation with special focus on the fact that it would let less technical people be able to work effectively with business logic (once developers provide them with a data model). We are relatively new to Drools and our impression has not

[rules-users] Plugtree’s training course for D rools(tm) in June

2010-05-14 Thread Esteban Aliverti
Hi people! I’m glad to announce that we (Plug Tree: http://plugtree.com) are preparing a Plugtree’s training course for Drools(tm) during June in Boston and/or NY the week after the Redhat(tm) Summit. These courses are going to cover all the Drools(tm) juicy parts from the insider perspective of a

Re: [rules-users] Drools5 in tomcat 5

2010-05-14 Thread Esteban Aliverti
I didn't test Guvnor in Tomcat 5, but I did it in Tomcat 6. The only thing you need to do is to remove el-ri-xxx.jar and el-api-xxx.jar from Guvnors libraries (open the war file, browse to WEB-INF/lib and remove the files). This is because Tomcat already provides this libraries. That is the only th

Re: [rules-users] Guvnor M1 and jBOSS AS 5.1

2010-05-14 Thread Kessler Bortoluzzi, Mariana
Hi Jervis Liu, Thanks for your reply. I removed the libraries, and still get the same error. Cheers, Mariana -Ursprüngliche Nachricht- Von: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Jervisliu Gesendet: Freitag, 14. Mai 2010 06:34 An: