Re: [rules-users] 5.4.0.Beta2 parse error in consequence /* in string

2012-02-26 Thread Wolfgang Laun
Submitted: JBRULES-3401. -W On 24/02/2012, Benjamin Bennett wrote: > Just passing on I am using the drools 5.4.0Beta2 > > The following doesn't compile using the mvel dialect . > rule "some rule" > when > fact: Fact() > then > BasicFact fault= new BasicFact( "/*"); > end > > but > rule "some r

[rules-users] Drools (Planner) getting confused between list and map access

2012-02-26 Thread aitchnyu
I am trying to find the total of an attribute of`SubjectTeacherPeriod`. The `numAttributeMap`property (a map with `String` keys and `int` values) stores the value. But trying to access it is problematic as Drools thinks that `$num_value[$attribute]` is a list operation, not a map operation. I list

[rules-users] Deadline Approaching - ACM DEBS 2012

2012-02-26 Thread Adrian Paschke
* Apologize for multiple posting - Submission Deadline March 5th * = DEBS2012 6th ACM International Conference on Distributed Event-Based Systems July 16-20, 2012 Freie Universitaet Berlin,

Re: [rules-users] [Drools Planner] Hard constraint appears to be ignored

2012-02-26 Thread Reinis
Hello, >1) TRACE It did actually crash! java.lang.IllegalStateException: The presumedScore (0hard/-860soft) is corrupted because it is not the realScore (0hard/-858soft). Presumed workingMemory: Score rule (reward Resource consolidation) has count (44) and weight total (44). Real workingMem

Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-26 Thread shawn
Thank your for your reply~ I am developing the Identity and Access management. I have finished the basic requirement, but the pre-condition part is what I am doing. The website sends the pre-condition(like what IP address or the time period can user access) that user sets. The pre-conditions ar

Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-26 Thread shawn
Thank your for your reply~ I am developing the Identity and Access management. I have finished the basic requirement, but the pre-condition part is what I am doing. The website sends the pre-condition(like what IP address or the time period can user access) that user sets. The pre-conditions are wh

Re: [rules-users] [Drools Planner] Hard constraint appears to be ignored

2012-02-26 Thread Geoffrey De Smet
1) If you haven't already, can you turn on TRACE and let it run a while (it will be much slower)? Report here if that crashes or not. 2) What drools version and what planner version are you using? Op 26-02-12 17:51, Reinis schreef: > Hello, it appears that hard constraint I have defined is being

Re: [rules-users] Drools Planner: Vehicle routing problems

2012-02-26 Thread Geoffrey De Smet
Hi David, Op 24-02-12 16:26, davidglassborow schreef: > Some more details on my problem: > > > Here is an example of a vehicle routing solution, 2 crews and 4 Jobs A, B, C > and D. > The print out below is the solver and solutions found at each step (it > prints out each chain of jobs) > As you

Re: [rules-users] Loading rules performance problem in 5.4.0.Beta2 compare to 5.0.1

2012-02-26 Thread erolagnab
Appreciate for the useful info, Mark. -- View this message in context: http://drools.46999.n3.nabble.com/Loading-rules-performance-problem-in-5-4-0-Beta2-compare-to-5-0-1-tp3768609p3777289.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-26 Thread Wolfgang Laun
A (dynamic) "request" with a "logical expression" that is to be evaluated as a rule is very much like a (dynamic) SQL query to be evaluated on a database. Are you sure that Drools is the right platform? If "someone" wants to send a logical expression in a formal language of their own, you'll have

[rules-users] [Drools Planner] Hard constraint appears to be ignored

2012-02-26 Thread Reinis
Hello, it appears that hard constraint I have defined is being ignored in some rare cases. Here's an example: This is what my application logs after getting best solution after solver has returned from solve(): 2012-02-23 21:28:54,595 [main] INFO Project Project1 assignment 563:[2012-02-27T13

Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-26 Thread shawn
Sorry, I forget to mention one thing. What's really difficult for me is to translate the "AND","OR"(Condition 1 AND Condition 2 OR Condition 3) to the drool. Because someone will send the request with the expression(Condition 1 AND Condition 2 OR Condition 3) to me. For each request the exp

Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-26 Thread shawn
Thank you ~ I will learn the documentation more. -- View this message in context: http://drools.46999.n3.nabble.com/How-to-create-a-drl-file-or-decision-table-dynamically-tp3772708p3777002.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-26 Thread Michael Anstis
You don't need a file, you need a String (not to say you couldn't use a File if you really, really wanted - just that you don't have to). Other than the Fluent API already mentioned there is no Drools API to construct a DRL String. Read the manual, understand *your* data and build DRL applicable.

Re: [rules-users] How to create a drl file or decision table dynamically?

2012-02-26 Thread shawn
Hi Michael, Thank you for your reply~ Now, I understand some mechanism of building dynamic class. Back to my question, if I understand correct, those methods you mentioned is to add a drl file(exist) to the knowledgeBase dynamically, right? But how about the file? I mean if I need to write "Conditi