[rules-users] RuntimeDroolsException
Hi, I'm starting to use eclipse plug.in for JRules. I created the example JRules project in eclipse and I tried to start it as Java Application but I got this exception org.drools.RuntimeDroolsException: Unable to load dialect ' org.drools.rule.builder.dialect.java.JavaDialect:java' at org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry( PackageBuilderConfiguration.java:156) at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:131) at org.drools.compiler.PackageBuilder.init(PackageBuilder.java:84) at com.sample.DroolsTest.readRule(DroolsTest.java:50) at com.sample.DroolsTest.main(DroolsTest.java:21) Can someone help me? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] problem with threads
Hi all, I have a HashTable dawned by a thread T1, another thread T2 take this HashTable and give it to the working memory as assertion. what happens if T2 and JRools try to access to the HashTable? Can I consider the working memory as a thread and use a method synchronization to solve the concurrent access problem? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] rules name
Hi all, can I set using the decision table the name of each rules? thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] column in OR
Hi all, how can I put two columns in OR Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] column in OR
yes, but in a decision table regards Raffo 2007/9/12, Edson Tirelli [EMAIL PROTECTED]: What do you mean? rule XXX when A() or B() then // do something end ? Edson 2007/9/12, Raffaele Viola [EMAIL PROTECTED]: Hi all, how can I put two columns in OR Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RIGHT_PAREN
Hi all, can some one help me? I don't understand why this drl package org.drools.examples.decisiontable; #generated from Decision Table import com.RuleEngine.ControlloreNodo.*; import com.RuleEngine.ControlloreNodo.OggettiControllo.Azione; import com.RuleEngine.ControlloreNodo.OggettiStato.StatoNodo; global StatoNodo statoNodo; global Azione azione; function controllo(String a) { return statoNodovariabiliInOR(a); } #From row number: 13 rule Pricing bracket_13 when controllo(18) then azione.setNomeAzione(ciao); end Gives me this type of error: [13,12]: unknown:13:12 mismatched token: [EMAIL PROTECTED],476:479='18',20,13:12]; expecting type RIGHT_PAREN Thanks, Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] assertion of object
Hi all, how can I assert an object to the rules engine and be sure that for each rule fired it use s a new istance of my object?? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] RIGHT_PAREN
ok thanks ... i solved my problem using eval(statoNodo.variabiliInOR($param)); the function variabiliInOR returns a boolean variable Regards Raffo 2007/9/21, Scott Reed [EMAIL PROTECTED]: Ok, my apologies for not reading carefully. Now I see you are working from a decision table. My advice is to try your rules using DRL first to be sure you understand the syntax and the limitations and then work out the decision table version. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] assertion of object
No, the problem is that if I assert an object ArrayList lista and in the Condition i add a string using $param at the end of iteration I have an array with every params in the column but I want only the param in the row of my action Thanks Raffo 2007/9/21, Scott Reed [EMAIL PROTECTED]: maybe: insert( new MyObject( x,y,z ) ); ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Fwd: [rules-users] assertion of object
How can I declare a variable not global but local to every rules Thanks Raffo -- Forwarded message -- From: Raffaele Viola [EMAIL PROTECTED] Date: 21-set-2007 19.51 Subject: Re: [rules-users] assertion of object To: Rules Users List rules-users@lists.jboss.org No, the problem is that if I assert an object ArrayList lista and in the Condition i add a string using $param at the end of iteration I have an array with every params in the column but I want only the param in the row of my action Thanks Raffo 2007/9/21, Scott Reed [EMAIL PROTECTED]: maybe: insert( new MyObject( x,y,z ) ); ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Fwd: assertion of object
when a condition match call statoNodo.variabiliInOR() that add in to the list the first arg the action function add the list in the azioe with the method azione.setAzione(pio,lista); My list result is : Pisa Cagliari Pisa Cagliari package org.drools.examples.decisiontable; #generated from Decision Table import com.RuleEngine.ControlloreNodo.*; import com.RuleEngine.ControlloreNodo.OggettiControllo.Azione; import com.RuleEngine.ControlloreNodo.OggettiStato.StatoNodo; import java.util.ArrayList; global StatoNodo statoNodo; global Azione azione; global ArrayList lista; #From row number: 13 rule Pricing bracket_13 salience 1 when eval(statoNodo.variabiliInOR(Pisa,lista,1)) then azione.setAzione(ciao,lista); end #From row number: 14 rule Pricing bracket_14 salience 3 when eval(statoNodo.variabiliInOR(Cagliari,Pisa,lista,1)) then azione.setAzione(pio,lista); end ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] drools cannot be resolved
Hi all, why if I set in the condition eval(statoNodo.variabiliInOR(drools.getRule().getName())) I get the error drools cannot be resolved?? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools cannot be resolved
In the statoNodo.variabiliInOR(drools.getRule().getName(),$param) called in the condition part of the rule creates a list using $param that I add in the consequences part to another object called Azione. At the end Azione must contains the list created using the $param of is own row. But so far I have no solution Thanks Raffo 2007/9/22, Edson Tirelli [EMAIL PROTECTED]: Because the drools variable is only available in consequences. What are you trying to do? []s Edson 2007/9/22, Raffaele Viola [EMAIL PROTECTED]: Hi all, why if I set in the condition eval(statoNodo.variabiliInOR(drools.getRule().getName())) I get the error drools cannot be resolved?? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli Software Engineer - JBoss Rules Core Developer Office: +55 11 3529-6000 Mobile: +55 11 9287-5646 JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] create XML rules with XML parser
Hi all, I want to create automatically the xml containing the rules using a parser like castor, which .xsd I have to use to generate the appropriate java class? Can someone give me some indications? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] BaseDescr and addOrMerge method
Hi all, I'm searching for a description about the way to use the addOrMerge method in the BaseDescr interface, but in the Drools 4.0.3 API there are nothing? Can someone help me? Thanks in advance Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users