[rules-users] Rule For Counting Planning Variables/Entities

2013-11-11 Thread newbie
I am new user of drools and I'm trying to recreate an application similar to nurse rostering. This time assigning an employee to a department for a specific period of time. My hard constraint was an employee must be assigned to a department at least 3 months. My planning entity is DepartmentAssignm

Re: [rules-users] Rule For Counting Planning Variables/Entities

2013-11-11 Thread newbie
Yes I have, each of my planning entity DepartmentAssignemnt has Department, Duration, and Employee Object. Employee is my planning variable and I configure it to be nullable. -- View this message in context: http://drools.46999.n3.nabble.com/Rule-For-Counting-Planning-Variables-Entities-tp40267

Re: [rules-users] Rule For Counting Planning Variables/Entities

2013-11-11 Thread newbie
Sample output would be: [DepartmentAssignment1] 02-01-2013 to 02-28-2013 -> [Employee-1] to [Department1] [DepartmentAssignment2] 03-01-2013 to 03-31-2013 -> [Employee-1] to [Department1] [DepartmentAssignment3] 04-01-2013 to 04-30-2013 -> [Employee-1] to [Department1] [DepartmentAssignme

[rules-users] Nullable Planning Variable

2013-11-12 Thread newbie
According to Drools 5.5 reference doc "Nullable planning variables are not supported for construction heuristics in 5.5.x or lower." I cannot config the planning variable to be null using drools 5.5? -- View this message in context: http://drools.46999.n3.nabble.com/Nullable-Planning-Variable-

[rules-users] Java Heap Space Out of Memory

2013-11-18 Thread newbie
I am currently using optaplanner 6.0.0.CR5, I have about 11000 planning entity objects and about 1000 planning variable objects. Would that be the cause of this problem? -- View this message in context: http://drools.46999.n3.nabble.com/Java-Heap-Space-Out-of-Memory-tp4026825.html Sent from the

Re: [rules-users] Java Heap Space Out of Memory

2013-11-19 Thread newbie
Here's the stacktrace: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at org.drools.core.base.accumulators.JavaAccumulatorFunctionExecutor.createContext(JavaAccumulatorFunctionExecutor.java:81) at org.drools.core.rule.Accumulate.createContext(Accumulate.java

Re: [rules-users] Java Heap Space Out of Memory in Drools

2013-11-19 Thread newbie
I have figured it out that this rule is the reason for the out of memory error. Basically it counts the number of months assigned to a resource per requirement and it should be a minimum of 3 months. rule "minimumMonths" when $requirement : Requirement() $employee: Employee()

Re: [rules-users] Java Heap Space Out of Memory in Drools

2013-11-19 Thread newbie
My example was I have 1000 employees and 1000 requirement. Each requirement has duration of 10 months. The number of assignment therefore would be number of months of requirment * number of requirement all in all 1 assignments. -- View this message in context: http://drools.46999.n3.nabble.

Re: [rules-users] Nullable Planning Variable

2013-11-20 Thread newbie
I am using 6.0.0CR5. I configure the planning variable to be null. Now using the construction heuristic FIRST_FIT FIRST_NON_DETERIORATING_SCORE all the planning entities was assigned with a planning variable even if the assignment lead to a negative hard constraint. I assum

[rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-23 Thread newbie
I created a custom solver which assign planning variables to planning entities. I have a simple rule checking if there are no assign variable that adds negative soft constraint. But when I assigned my planning variable it increases the negative score instead of reducing it. I have for example 12 e

Re: [rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-24 Thread newbie
Yes I am using now the latest version 6.0.0.Final. -- View this message in context: http://drools.46999.n3.nabble.com/SolutionInitializer-for-Nullable-Planning-Variable-tp4026901p4026905.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

[rules-users] BEST_FIT Null Pointer Exception

2013-11-25 Thread newbie
I am currently using final 6.0 and I used BEST_FIT but after I have run it propmts java.lang.NullPointerException pointing to my PlanningVariableStrengComparator. Did I miss something? My planning variable comparator by the way is : public class MyVariableStrengthComparator implements Comparator,

Re: [rules-users] BEST_FIT Null Pointer Exception

2013-11-28 Thread newbie
Exception in thread "main" java.lang.NullPointerException at com.example.domain.solver.MyVariableStrengthComparator.compare(MyVariableStrengthComparator.java:30) at com.example.domain.solver.MyVariableStrengthComparator.compare(MyVariableStrengthComparator.java:1) at java.ut

Re: [rules-users] Writing rules using java from template

2008-10-07 Thread drools newbie
Hello, Actually I want to do the same way Sandeep has described. 1. Can someone please post some example to generate the drl from template? 2.This thread is more than a 1 1/2 year old. Does drools have in-built template concept now instead of using a template langauge such velocity, freemarker o

Re: [rules-users] Writing rules using java from template

2008-10-07 Thread drools newbie
tions are f3='c' or f4='d' in db. how can I create rules programmatically and feed into rule engine? Please provide some guidance with examples? Thanks again. Mark Proctor wrote: > > drools newbie wrote: >> Hello, >> Actually I want to do the same way Sa

Re: [rules-users] Writing rules using java from template

2008-10-08 Thread drools newbie
Thanks again Mark. If anyone had done this before, Please share your ideas. If not, drools experts, Please give me some idea how we can do this. Since I'm new to drools, I'm not sure where to start. I have short deadline. Thanks in advance. Mark Proctor wrote: > > dro

RE: [rules-users] newbie - dynamic rules in java and db design

2008-10-09 Thread drools newbie
he rules from db which is in GUI friendly format,Will > it > be easy to convert that to java rules or drools native language? > > [Vikrant] Drools can be written in XML or English. For the GUI, you could > use XML rather than create your own language and let drools compile things > au

[rules-users] any event call while adding/removing rules from Guvnor

2008-10-09 Thread drools newbie
Hello, I would like to store rule entry in my database while using Guvnor. So whenever any rule is added/removed from Guvnor, I want to add/remove the same from database table. Is this possible? Is there any event handler called in Guvnor while adding/removing rules? Please clarify. Thanks. -- V

[rules-users] Unable to parse rule to show RETE view error

2008-10-15 Thread drools newbie
Hello, I'm having the same problem as given in below link and tried same solution. but no luck. I'm using drools 5.0. MR2 in eclipse 3.4.0. Please help. http://lists.jboss.org/pipermail/rules-users/2008-June/005974.html Thank You! -- View this message in context: http://www.nabble.com/Unable-to

Re: [rules-users] Unable to parse rule to show RETE view error

2008-10-16 Thread drools newbie
ok thanks. Is there any temporary fix for now? Mark Proctor wrote: > > could be a bug, we'll double check this for M3. > > Mark > drools newbie wrote: >> Hello, >> I'm having the same problem as given in below link and tried same >> solution. &

[rules-users] calling custom java code from Guvnor editor

2008-10-27 Thread drools newbie
Hello, Is there way to call some java code (that interacts with application db) from Guvnor whenever we add or change rule from Guvnor editor? Please clarify. Thanks -- View this message in context: http://www.nabble.com/calling-custom-java-code-from-Guvnor-editor-tp20197280p20197280.html Sent

Re: [rules-users] calling custom java code from Guvnor editor

2008-10-27 Thread drools newbie
patch do you have a > preference as to how it would work? On save, call a url with the rule > name? What are your needs for this? > > > > -Michael Rhoden > > > - Original Message - > From: "drools newbie" <[EMAIL PROTECTED]> > To: rules-u

[rules-users] Error in setting up Guvnor in tomcat 6

2008-10-28 Thread drools newbie
Hello, I followed the instructions given in http://www.jboss.org/community/docs/DOC-10130. But getting following error. Please someone help. INFO: Deploying web application archive mydrools-guvnor.war Oct 28, 2008 9:48:24 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerSt

[rules-users] loading rules from database and add conditions dynamically

2008-10-30 Thread drools newbie
Hello, Came across this link http://docs.codehaus.org/display/DROOLS/Loading+and+managing+rules+dynamically+from+a+database when I was looking for how to load rules from database. If I understand correctly, we can't add java conditions dynamically in the database rather use python script if we wan