Re: [rules-users] Is it possible to affect load order of rules?

2011-05-18 Thread Abhay B. Chaware
If I understand your problem correctly, you can, may be, flag your MyObj ( add an attribute called flag and set it to some value ) indicating that it has passed "morespecific" rule and add constraint in the "general" rule to ignore such facts ? -abhay From: rule

Re: [rules-users] Drools and threads

2011-05-18 Thread Abhay B. Chaware
Correct. But does it then internally build the DRL into binary/compiled format and then uses it for updating knowledge base ? From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: Thursday, May 19,

[rules-users] Is it possible to affect load order of rules?

2011-05-18 Thread Martin, Matthias
Hello, in our project we've to know, which rules have already been checked, regardless whether or not the rule gets activated and hence put on the agenda. Is there any possibility to affect the order, in which the drools engine reads and checks the LHS of rules? I suppose the assignment of a sa

[rules-users] change of Rules Dyanmically

2011-05-18 Thread saurabh maheshwari
HI , I want to change rules dynamically , but not want to retract the objects from memory. I am using one fact class which is also created dynamically. is it possible to do this ? Please help me. Thanks , saurabh ___ rules-users mailing list rules-us

Re: [rules-users] Drools and threads

2011-05-18 Thread Wolfgang Laun
You can feed a KnowledgeBuilder with a number of data formats, DRL being just one of them. The full standard procedurefor building is to add one or more resources to the builder (indicating its type), check for errors and create a KnowledgeBase; then proceed with a session, etc. -W 2011/5/19 Abh

Re: [rules-users] Drools and threads

2011-05-18 Thread Abhay B. Chaware
Little confused about the third question I had, about rules compilation. I now know that rules are to be compiled. When I use Guvnor, I have to package the rules ( this is where they are compiled into binary format ) and download the package file and feed it into the production memory / knowle

Re: [rules-users] Import java.util*, java.math* inside Guvnor BRL?

2011-05-18 Thread Abhay B. Chaware
I didn't need to .. e.g. I added this "free form drl" in to one of my rules "then" part, and it validated it successfully. You just need to provide a fully qualified name .. e.g. java.util.Vector, instead of just Vector. [cid:image001.jpg@01CC1616.2C861CA0] -Original Message- Fr

Re: [rules-users] Problems with Drools 5.2.0.M1 and IE7?

2011-05-18 Thread Jervis Liu
Hi can you attache a screen shot of what Guvnor looks like on IE7 please? I ran into some problems on IE9, but have not tested on IE7 yet. Thanks, Jervis On 2011/5/19 2:12, Steve Reeves wrote: > Just curious if anyone had any thoughts on what we could do to get IE7 to > display properly. It woul

Re: [rules-users] Problems with Drools 5.2.0.M1 and IE7?

2011-05-18 Thread Steve Reeves
Just curious if anyone had any thoughts on what we could do to get IE7 to display properly. It would be nice to just upgrade everyone to IE8, but we're at the mercy of our Enterprise policies and upgrade schedules. Thanks, Steve -- View this message in context: http://drools.46999.n3.nabble.com

[rules-users] How can I access the updated JAR file in DRL file ???

2011-05-18 Thread Vijeth Raj
Hi , Recently i was working on a drools project where i came across certain issues and i need some help. In my project i access jar at runtime by making use of the URLClassLoader.Here is the code : Object object=*null*; Class myclass=*null*; URL jarPath=*null*; *try*{ jarPath

[rules-users] Import java.util*, java.math* inside Guvnor BRL?

2011-05-18 Thread boy18nj
Hi, In order to import java.util* classes inside Guvnor rules, do I need to upload java,util* jar file. For example-, I am using BigDecimal amount = BigDecimal.ZERO; It complains unknown class or Illegal statement BigDecimal -- View this message in context: http://drools.46999.n3.nabble.com/Im

Re: [rules-users] Complicated Grant Permissions Logic

2011-05-18 Thread Wolfgang Laun
Neither $submitter nor $requester are defined in the rule as you posted it, so there's no way of telling where the problem might be. Note that '&&' binds stronger that '||' and use parentheses to force precedence. -W On 18 May 2011 18:40, ginni wrote: > Hi, > > I am new to Drools and would ju

Re: [rules-users] drools-server

2011-05-18 Thread Mauricio Salatino
Hi, I was refactoring and fixing some issues with Drools Server. The 5.2 version can be deployed out of the box into jboss/tomcat/jetty without any modification as far as I know. Can you try this new version? Greetings. 2011/5/18 Abhay B. Chaware > Hi > > I am trying to get the default drools-s

Re: [rules-users] drools-spring drools-grid-impl dependency

2011-05-18 Thread Mauricio Salatino
Hi Tommy, We are still refactoring grid, and we will probably include just drools-grid-api as direct dependency of drools-spring. >From my perspective it makes perfectly sense to be able to configure where the session will be executed inside the spring configuration. We will try to remove all the u

[rules-users] Complicated Grant Permissions Logic

2011-05-18 Thread ginni
Hi, I am new to Drools and would just like to understand how to do what I am trying to do. This syntax does not work, and I am not sure how to make it work. I want permission granted if: User is Librarian OR user is Submitter OR user is Requester AND requestSubmitted is false AND requestCancel

[rules-users] Does guvnor inside BRL supports calling method the one have return type?

2011-05-18 Thread boy18nj
I had class, for example- . Inside BRL after 'THEN' clause, the guvnor only shows my calculate and toString method. But it does not provides me opportunity to call getMoney() method. public class A{ public void calculate(){ } public String toString(){ } public BigDecimal getMoney(){ } } -- Vie

[rules-users] Guvnor can access database?

2011-05-18 Thread boy18nj
I'm wondering if it is possible inside DSLR or BRL to access database using Guvnor. Please guide me thru the example, how we setup access to database in guvnor when using 'from' keyword. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-can-access-database-tp2956847p29568

Re: [rules-users] drools-spring drools-grid-impl dependency

2011-05-18 Thread Tommy Odom
I was able to get drools 5.2 to deploy after removing the persistence.xml from the drools-grid-impl jar file. The problem is that one of my classes expects a single persistence unit to exist in the WAR because it is used across multiple WARs that use different persistence unit names. It appea

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Sumeet Karawal
Hi, I am now able to run the examples (by removing the commented statements in the drools.package file). Thanks a lot for the help. But how can we create more rules in a brl . Is it possible to create more than one rule in a brl as we do in the drl file or do we have to create different brl files

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Sumeet Karawal
Hi All, I removed the commented lines from the drools.package file. Its now working fine. Thanks a lot!!! I was using the brl for the first time, so didn't know that the rule name was getting commented out. I used the same code to convert it into drl and pass it to package builder. Isn't there

[rules-users] drools-server

2011-05-18 Thread Abhay B. Chaware
Hi I am trying to get the default drools-server.war (drools-5.1.1-server.war to be specific ) to work on tomcat. When I access http://localhost:8090/drools-5.1.1-server/kservice/rest , I am getting "No service found" in the browser and in the console, = May 18,

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Wolfgang Laun
2011/5/18 Michael Anstis > I just checked and when I create a new BRL rule drools.packages has the > comment on a single line. > > od -tx1 bfzwork/aws/src/main/rules/drools.package 000 2f 2f 54 68 69 73 20 69 73 20 61 20 70 61 63 6b 020 61 67 65 20 63 6f 6e 66 69 67 75 72 61 74 69 6f

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Michael Anstis
I just checked and when I create a new BRL rule drools.packages has the comment on a single line. I must assume there was some manual change made to introduce the error. 2011/5/18 Wolfgang Laun > There is some code in 5.1.1 > org/drools/eclipse/rulebuilder/editors/RuleEditor.java > that creates

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Wolfgang Laun
There is some code in 5.1.1 org/drools/eclipse/rulebuilder/editors/RuleEditor.java that creates a file "drools.package" with if ( !file.exists() ) { String defaultHeader = "//This is a package configuration file"; defaultHeader += "\n//Add imports, glob

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Michael Anstis
//Add imports, globals etc here which will be used by all the rule assets in this folder. should be on one line, or add another comment marker at the start of the second line, e.g.:- //Add imports, globals etc here which will be used by all the rule assets in this folder. //Add imports, globals

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Abhay B. Chaware
I was able to reproduce your error ... :) try adding a new line ( enter ) after the comment in the drools.package Or just remove the commented line "//Add imports, globals etc here which will be used by all the rule assets in this folder." Your rule name is getting 'commented out' ..

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Sumeet Karawal
This is my drools.package file: I have just created a package and imported the required class in this file. //This is a package configuration file package com.rules; import com.model.PersonDetails; //Add imports, globals etc here which will be used by all the rule assets in this folde

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Michael Anstis
This looks rogue:- //Add imports, globals etc here which will be used by all the rule assets in this folder Can you post the content of your drools.packages file? On 18 May 2011 10:19, Sumeet Karawal wrote: > This is the output that I get : > > //This is a package configuration file > package

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Sumeet Karawal
This is the output that I get : //This is a package configuration file package com.rules; import com.model.PersonDetails; //Add imports, globals etc here which will be used by all the rule assets in this folder.rule "example" dialect "mvel" when $person : PersonDe

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Abhay B. Chaware
Can you write the outputDRL to System.out and check if the generated DRL syntax is correct ? System.out.println(outputDRL); Before instantiating KnowledgeBuilder -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Su

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Sumeet Karawal
I tried to use this also but now I am getting different error: java.lang.RuntimeException: [8,1]: [ERR 102] Line 8:1 mismatched input 'WHEN' Also, what is the significance of the first line. I have copied it as the same. My code is : String curDir = System.getProperty("user.dir");

Re: [rules-users] How to run one example of drools in eclipse?

2011-05-18 Thread clement.pernot
Thank you. With the drools-distribution-5.3.0-SNAPSHOT.zip, i can run the project. I don't understand why my first project, (download at http://download.jboss.org/drools/release/5.1.1.34858.FINAL/drools-5.1.1-examples.zip) didn't work, but with your help, i have a project which work, thank you :)

Re: [rules-users] Facing Problem in BRL

2011-05-18 Thread Abhay B. Chaware
I haven't been able to get "ResourceType.BRL" to work. This is how I do it .. String curDir = System.getProperty("user.dir"); String fileName = curDir + "\\src\\main\\rules\\drools.package"; String rulePackageContent = FileUtils.readFileToString(new File(fileName)); fileName = curDir + "\\src\\

[rules-users] Which drools bpmn editor (eclipse plugin) is compatible with Oryx web-based editor?

2011-05-18 Thread style.x7
Dear all, I've tried many different combinations of the eclipse drools/bpmn editor and Oryx web-based editor but my bpmn files just couldn't work across the two. I'm facing issues such as: java.lang.IllegalArgumentException: No profile with the name null was registered org.oryxeditor.server.Edito

Re: [rules-users] Drool 5 memberOf problem

2011-05-18 Thread Wolfgang Laun
You must insert a magic spell string to make this work ;-) Look at this line: String(FactorKeys.PHONE_PACKAGE memberOf ownedProductFactorSet) It says: "If there is an object of type java.lang.String and..." And so you must insert a String! But, of course, you don't need *this *condition. You