Re: [rules-users] Capturing condition/constraint evaluation results

2013-01-28 Thread Wolfgang Laun
Ah, yes - this is one of my fundamental Rule Design Patterns. It irks me no end that the White Paper Red Hat is about to publish hangs in some infinite (?) finalization loop - I could simply point you there and say "read the chapter on 'Learning the Reason for Failure'". (Mark: I'm bcc-ing you-know

Re: [rules-users] Capturing condition/constraint evaluation results

2013-01-28 Thread Grant Rettke
On Mon, Jan 28, 2013 at 5:50 PM, katvik wrote: > I think I am looking for "detect whenever a constraint is not satisfied", as > I need to simply provide the reasons why rule has no resulted in an action. It sounds like the simple answer is to do like Wolfgang said; hacking the internals sounds t

Re: [rules-users] Capturing condition/constraint evaluation results

2013-01-28 Thread katvik
Hi Davide, I think I am looking for "detect whenever a constraint is not satisfied", as I need to simply provide the reasons why rule has no resulted in an action. I need to spend more time with the hacks you provided as I don't know the internal drools structure that well. Appreciate your help.

Re: [rules-users] Capturing condition/constraint evaluation results

2013-01-28 Thread Davide Sottara
There was a similar discussion going on some time ago http://drools.46999.n3.nabble.com/Anyway-to-get-Failed-Reason-for-Failed-Rule-td4019070.html#a4019078 This said, what you are asking is not possible using the current APIs because constraints are not observable. There are ways to hack the probl

Re: [rules-users] Capturing condition/constraint evaluation results

2013-01-28 Thread katvik
Yes, this is exactly what I am looking for, let's say my rule has several conditions: Account is active AND balance is greater or equal than requested amount AND no pending transactions AND some other checks The action would be: allowWithdrawal This works perfectly, but if action didn't fire I

Re: [rules-users] Capturing condition/constraint evaluation results

2013-01-28 Thread Grant Rettke
Katvik what are you trying to achieve by realizing your goal? I'm curious to know the context. On Mon, Jan 28, 2013 at 2:03 PM, Wolfgang Laun wrote: > You've got to realize that evaluation proceeds according to the patterns > on a rule's LHS. Clearly, if a rule fires, all of your conditions are t

[rules-users] Planner: localSearch > unionMoveSelector

2013-01-28 Thread Michiel Vermandel
Hi, If I have a default unionMoveSelector in my configuration:       <...MoveSelector/>   <...MoveSelector/>   <...MoveSelector/>   ...     then is the next move selected by random amongst the different move selectors. I think I can understand that from the manual, though want

Re: [rules-users] DSL Translation

2013-01-28 Thread Wolfgang Laun
The addition of ucfirst was motivated by the idea of converting nouns like "car" to class names according to Java conventions ("Car"). Have you tried to use the field names to access attributes, which should be possible when you switch to dialect "mvel"? -W On 28 January 2013 09:34, prashantmira

Re: [rules-users] Capturing condition/constraint evaluation results

2013-01-28 Thread Wolfgang Laun
You've got to realize that evaluation proceeds according to the patterns on a rule's LHS. Clearly, if a rule fires, all of your conditions are true. I assume that this isn't the only answer you expect. - Let's look at a simple example in DRL: One( a == x ) Two( b == y ) Three( c == z ) I

Re: [rules-users] Heap space

2013-01-28 Thread André Fróes
i forgot adding the main class: - public static void main(String[] args) { String t = "" + "" + " com.swa.planner.domain.Distributor" + " com.swa.planner.domain.Engineer" + " " + "HARD_AND_SOFT" + " /com/swa/planner/domain/rule/distributorScoreRules.drl" + " " // + " " //

[rules-users] Heap space

2013-01-28 Thread André Fróes
Hello! After trying cloudComputer example i'm trying to implement my own schedule distributor, but now i'm facing heap space error, but i see that it does distribute some work orders. Here's the console error: --- 17:05:02.776 [main] INFO o.d.p.core.solver.DefaultSolver - Solving

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Mark Proctor
Wolfgang, Not sure what we can do about Nabble. It's a public service, that we don't have any control over. Users have to moderate their own posting, via accepting them in email verification, or they don't make it to the mailing list - we don't have any control over that either :( Mark On 28

Re: [rules-users] Dedication to Wolfgang Laun - Thank You

2013-01-28 Thread Cotton, Ben
+1 (emphatically) -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Reinis Sent: Sunday, January 06, 2013 8:44 AM To: Rules Users List Subject: [rules-users] Dedication to Wolfgang Laun - Thank You I want to thank yo

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Cotton, Ben
Ø Hey laune, Ø Ø You are kinda rude buddy. WRONG Starfish. Wolfgang is a singularly stellar support resource. Obviously Gregarious, Gentle, and Genius ... If you lurk here long enough, you will also come to know (with Certainty) that he is also most Gracious and most Generous. THANK Y

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Mark Proctor
On the contrary, i think he was more than civil, as you violated several "anti-patterns" for this list. You are on a public mailing list, representing your company, Accenture. I suggest you think twice before emailing, and always show curtesy. Please read the "anti-patterns" before further pos

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread starfish15
Hey laune, You are kinda rude buddy. Regards, Starfish -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-My-posts-have-not-been-accepted-yet-tp4021872p4021882.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] Duration rule attribute

2013-01-28 Thread starfish15
Ohhh Cool.thats something i wasnt aware. I would appreciate if some examples to use these attributes is also provided. Regards, starfish -- View this message in context: http://drools.46999.n3.nabble.com/Duration-rule-attribute-tp4021843p4021881.html Sent from the Drools: User for

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Wolfgang Laun
OP's posts were entered at Nabble, which has a highly annoying habit of showing this "not accedted" message. Moreover, replies on Nabble pop up on rules-users even before the primary question appears there. No wonder users are mystified. (All of which doesn't excuse unnecessary "urgent" and "ASAP"

Re: [rules-users] Duration rule attribute

2013-01-28 Thread Mark Proctor
Rules support an date-effective attribute. It uses the date fort set by the system property "drools.dateformat" Mark On 28 Jan 2013, at 08:46, starfish15 wrote: > Hello, > > A project is trying to weigh between BLAZE & DROOLS. N am a Drools FAN > personally, since w/o doubt OPEN SOURCE always

Re: [rules-users] Confusion with using predicates in spreadsheets

2013-01-28 Thread Wolfgang Laun
A condition column for attrib1 of factA with cell entries factB.attrib1 ought to work. -W On 28 January 2013 09:09, starfish15 wrote: > Hello, > > In Drools 5.2, Web Guided DTs, i have worked with calculation types as > *Predicate*. How can the same be used in a spreadsheet DT. > > Just to give

Re: [rules-users] Duration rule attribute

2013-01-28 Thread Wolfgang Laun
Rule attributes date-effective and date-expires provide full control. -W On 28/01/2013, starfish15 wrote: > Hello, > > A project is trying to weigh between BLAZE & DROOLS. N am a Drools FAN > personally, since w/o doubt OPEN SOURCE always ROCKS. ;-) > > It was mentioned that in BLAZE there is a

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Geoffrey De Smet
What are you talking about? PS: read anti-patterns section of this mailing-list: bottom of http://www.jboss.org/drools/lists Op 28-01-13 18:04, pooja.gh...@accenture.com schreef: Hello,   I have pos

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Mark Proctor
Not sure what you mean by "haven't been accepted". There is no moderation for this list, but you must email with the email address you use to subscribe, otherwise it gets declined. You also have plenty of other emails posted in the user mailing list, so I'm not sure what problems you are having

[rules-users] My posts have not been accepted yet

2013-01-28 Thread pooja.ghosh
Hello, I have posted some 2 or 3 Queries. They haven't been accepted yet. Kindly look into this and post it PLEASE. This is sort of URGENT. :( Thanking in anticipation. Regards, starfisj This message is for the designated recipient only and may contain privileg

Re: [rules-users] Error selecting order decrease [planner]

2013-01-28 Thread Geoffrey De Smet
com.swa.planner.domain.rule.Rule_requiredCpuPowerTotal_0a10acbeca924206a3becab080617987.defaultConsequence(Rule_requiredCpuPowerTotal_0a10acbeca924206a3becab080617987.java:14) What's in the then side of Rule_requiredCpuPowerTotal ? Op 28-01-13 16:00, André Fróes sc

[rules-users] applyChangeSet slow

2013-01-28 Thread rjr201
Hi, I've created a rule package in Guvnor which I have been accessing using a changeset.xml file. When calling applyChangeSet() on the KnowledgeAgent, it is taking roughly 5 seconds to complete. Is this normal? I don't have a large amount of rules. I have tried downloading the package file and ha

Re: [rules-users] Error selecting order decrease [planner]

2013-01-28 Thread André Fróes
Even adding that, the error still -- 12:57:41.050 [main] INFO o.d.p.core.solver.DefaultSolver - Solving started: time spend (152), score (null), new best score (null), random seed (0). Exception in thread "main" Exception executing consequence for rule "requiredCpuPowerTotal" in com.s

Re: [rules-users] Error selecting order decrease [planner]

2013-01-28 Thread Geoffrey De Smet
The value of a variable of an entity starts out as null during construction heuristics, even if it's not nullable. The usual trick is to add null safe getters: public class BedDesignation {    // bed is planning variable   ...   public Departement g

Re: [rules-users] Stateful Session giving major issues

2013-01-28 Thread starfish15
it was a silly mistake from my end, i had used the wrong inputs to the rules and hence the o/p was nvr coming up. If possible do DELETE this query itself. :( -- View this message in context: http://drools.46999.n3.nabble.com/Stateful-Session-giving-major-issues-tp4021832p4021858.html Sent from

[rules-users] Drools with DB based rule

2013-01-28 Thread starfish15
Hello, I need to write a rule in a spreadsheet DT according to the below condition *Fact1.key1 == Fact3.key2* where the Facts have been designed on the basis of DB Tables and respective columns. It is mentioned that these tables would be joined on the basis of these columns i.e. key1and key2. an

Re: [rules-users] Error selecting order decrease

2013-01-28 Thread André Fróes
I've implemented it to see how it would work, now I got another error: --- 12:10:41.357 [main] INFO o.d.p.core.solver.DefaultSolver - Solving started: time spend (302), score (null), new best score (null), random seed (0). Exception in thread "main" Exception executing consequence fo

[rules-users] Error selecting order decrease

2013-01-28 Thread André Fróes
Hello there, i'm getting this error: --- 11:26:50.394 [main] INFO o.d.p.core.solver.DefaultSolver - Solving started: time spend (187), score (null), new best score (null), random seed (0). Exception in thread "main" java.lang.IllegalStateException: The selectionOrder (DECREASING_D

Re: [rules-users] Custom UI to create rules and inserting them via REST API

2013-01-28 Thread benq2188
Esteban thanks for the quick reply, so in this case my question is, which object is the key in the API to create .drl rule ? Should I create RuleModel? Also how can I store that .drl via POST method of the REST? Regards, Bengi. Esteban wrote > If you are not planning to use Guvnor to author yo

Re: [rules-users] Custom UI to create rules and inserting them via REST API

2013-01-28 Thread Esteban Aliverti
If you are not planning to use Guvnor to author your rules, there is no need to store them in BRL format. You can store your rules as 'technical rules' directly. Best Regards, Esteban Aliverti - Blog @ http://ilesteban.wordpress.com On Mon, Jan 28, 201

[rules-users] Custom UI to create rules and inserting them via REST API

2013-01-28 Thread benq2188
Hi everyone, I would like to implement an Expert System which I can have my own UI to generate user defined rules, and I am planning to use REST API to insert/update/delete the rules,which are in the guvnor repository. Inside the guvnor, I would like to store my rules in .drl format. So I was wond

Re: [rules-users] .BRL in Eclipse

2013-01-28 Thread rjr201
In fact i've found my answer: http://drools.46999.n3.nabble.com/Guided-Rule-option-not-visible-in-Eclipse-td4019119.html -- View this message in context: http://drools.46999.n3.nabble.com/BRL-in-Ecl

Re: [rules-users] .BRL in Eclipse

2013-01-28 Thread rjr201
Hi, thanks for your fast response. I've done as you've suggested, but eclipse only lets me see the .brl as a text file rather than rendering as it would look in Guvnor. I suspect support in Eclipse for the guided editor has been dropped with the last couple of releases. Unless i'm missing someth

Re: [rules-users] .BRL in Eclipse

2013-01-28 Thread Stephen Masters
If you have the drools plugins installed, then you can open the "Guvnor Repositories" view. Add a repository pointing at your Guvnor installation. You can then drag them into a local project, modify them and commit back to Guvnor. https://access.redhat.com/knowledge/docs/en-US/JBoss_Developer_St

[rules-users] .BRL in Eclipse

2013-01-28 Thread rjr201
Hi, I'm creating rules within the Guided Editor in Guvnor as this is how my client wants to view and edit them. Looking at the documentation here it seems to say that I can create and edit .brl f

[rules-users] Duration rule attribute

2013-01-28 Thread starfish15
Hello, A project is trying to weigh between BLAZE & DROOLS. N am a Drools FAN personally, since w/o doubt OPEN SOURCE always ROCKS. ;-) It was mentioned that in BLAZE there is a manner in which they decide on the rules validity period. Though even i mentioned that the same definitely exists in Dr

[rules-users] DSL Translation

2013-01-28 Thread prashantmiraj...@gmail.com
In my project coding standard is as follows class members names as nameWithEachWordWithFirstLetterUpperCase and related getters and setters have getNameWithEachWordWithFirstLetterUpperCase and setNameWithEachWordWithFirstLetterUpperCase respectively. While using the DSL unlike ucfirst which conve

[rules-users] Confusion with using predicates in spreadsheets

2013-01-28 Thread starfish15
Hello, In Drools 5.2, Web Guided DTs, i have worked with calculation types as *Predicate*. How can the same be used in a spreadsheet DT. Just to give an idea, i need to compare values in 2 facts. So in the DT, Condition was written as factA.attrib1 == factB.attrib1, Bt i am stuck as to what shou