Re: [rules-users] Fill dependent dropdown lists based on a web decision table

2013-02-28 Thread peach_wyss
ok thanks, all is much clearer now... What I don't understand: - When I see examples of enumerations in guvnor like: 'Car.color' : ['red', 'blue','green'] -> In all of this examples, there seems to be a text editor in guvnor. But when I create a new enumeration in guvnor (5.5. final), there isn'

Re: [rules-users] Extended rule doesn't have reference to variable created in super rule

2013-02-28 Thread Wolfgang Laun
On 01/03/2013, arul.prasha...@gmail.com wrote: > I have the below rules written but $xyz isn't available or visible in Rule > 2. > Is this the way extends keyword works? > > rule "test 1" > when > $xyz : XYZ(value == 0); > then > // do somethings > > rule "test 2" extends "test 1" > when >

[rules-users] Extended rule doesn't have reference to variable created in super rule

2013-02-28 Thread arul.prasha...@gmail.com
I have the below rules written but $xyz isn't available or visible in Rule 2. Is this the way extends keyword works? rule "test 1" when $xyz : XYZ(value == 0); then // do somethings rule "test 2" extends "test 1" when eval($xyz.reference == 1) then // do something. Exception: Err

Re: [rules-users] Tree iteration with accumulate: is it possible ?

2013-02-28 Thread Davide Sottara
The not-so-immediate solution would be to use queries, for example something along the following lines: declare Node id : String children : Node[] value : Integer end rule "Init" when then Node n1 = new Node( "l1", new Node[] {}, 10 ); Node n2 = new Node( "l2", new Node[] {}, 7 ); Nod

Re: [rules-users] Drools / Guvnor 6

2013-02-28 Thread Mark Proctor
I would hope before end of this year. Mark On 28 Feb 2013, at 22:39, kurrent93 wrote: > When can expect Drools 6 to make it into Enterprise support? > > I understand this is a long way off, but generally, is this 1 year, > 18months, or longer? > > > > -- > View this message in context: > ht

Re: [rules-users] Drools / Guvnor 6

2013-02-28 Thread kurrent93
When can expect Drools 6 to make it into Enterprise support? I understand this is a long way off, but generally, is this 1 year, 18months, or longer? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-Guvnor-6-tp4022638p4022644.html Sent from the Drools: User

Re: [rules-users] How to integrate Declarative Fact created using Guvnor in Java

2013-02-28 Thread IPatel
I was able to fix the problem but now I am with more questions then answers. Here is what i had before defined in my DSL [when] The transcation is zero dollar = trans:Transcation (Indicator == "N") [when] System description one field is ABC= $trans1:Filter(Field1 == "ABC") [then] Filter out the

Re: [rules-users] Drools / Guvnor 6

2013-02-28 Thread Mark Proctor
6.0 stuff is still raw, there are alphas, but they are not really got general use. We'll put out a beta shortly, I'd recommend you wait until then. Also a lot has changed in 6.0, especially around deployment, so it won't be an easy switch. Mark On 28 Feb 2013, at 17:50, Stephen Masters wrote:

Re: [rules-users] Tree iteration with accumulate: is it possible ?

2013-02-28 Thread Wolfgang Laun
I think that the simplest solution would be to either store the sum of the children's values into each Node, or to create and insert additional facts containing these sums, in parallel to non-leaf Node facts. -W On 28/02/2013, mcyrb wrote: > Hello. > > I have a tree, with each leaf containing a r

[rules-users] constraints lacking and in excess

2013-02-28 Thread Michiel Vermandel
Hi, I have written a custom move implementation. At first I got the exception: java.lang.IllegalStateException: The moveClass (class my.planner.solver.MoveGroupToPeriod)'s move (PROJECT Period GroupChange:{T= Inspect 55871.I#0 [4->4] Bart DE BIE IV XI} => (P5)  [i1]) probably has a corrupted u

[rules-users] Tree iteration with accumulate: is it possible ?

2013-02-28 Thread mcyrb
Hello. I have a tree, with each leaf containing a random value. The value of each node is the sum of its children value. I would like to write a rule which looks like this: when nodeValue == 18 (e.g.) then // do something with this node end The accumulate conditional element looked adequat

[rules-users] Drools / Guvnor 6

2013-02-28 Thread Stephen Masters
Hi folks, Just wondering whether there's a download available yet for Guvnor v6, or whether I need to build from source. As mentioned previously I'm tinkering with it on WebSphere, and so far (using WAS 8.5 Liberty Profile) I am experiencing zero issues. It just works! I'm using the Tomcat dis

Re: [rules-users] How to integrate Declarative Fact created using Guvnor in Java

2013-02-28 Thread IPatel
Thank you for your response. I was able to follow your instruction and created newInstance of the facts. Quick question: I have 2 facts defined in Guvnor: Conditions Variable: Source (this variable is text/string) Variable: SourceType (this variable is text/string) Transcation Variable: filter

Re: [rules-users] Newbie question. Possibilities for optimizing Employee Schedules

2013-02-28 Thread Geoffrey De Smet
Op 28-02-13 16:16, sanger schreef: > I have an application that requires optimizing an Employee schedule. One of > the criteria is that the schedule must remain as static as possible. In > other words, when conditions change the system must make the minimum number > of adjustments to the schedule

Re: [rules-users] Bad Gateway at http://www.jboss.org/drools

2013-02-28 Thread Geoffrey De Smet
They say it's fixed now. Op 27-02-13 15:53, Geoffrey De Smet schreef: > Forwarded to our internal jboss.org team. > Thanks for reporting. > > Op 27-02-13 14:15, Syargey schreef: >> I can't access http://www.jboss.org/drools >> for two days :-( >> >> The error message

[rules-users] Newbie question. Possibilities for optimizing Employee Schedules

2013-02-28 Thread sanger
I have an application that requires optimizing an Employee schedule. One of the criteria is that the schedule must remain as static as possible. In other words, when conditions change the system must make the minimum number of adjustments to the schedule to accomodate the new conditions. We would n

Re: [rules-users] Fill dependent dropdown lists based on a web decision table

2013-02-28 Thread Michael Anstis
Did you read the "Advanced" section? This talks about how you can use an external source of data for enumerations in Guvnor. I thought this is what you wanted? On 28 February 2013 10:16, peach_wyss wrote: > hy > > thanks for your answer. > > 1) I think you have misunderstood me. I don't want t

[rules-users] add guvnor-webapp-core as a dependency to project

2013-02-28 Thread kooper
Hi,I'm trying to add guvnor-webapp-core as a dependency to my project, but after when deploying app to JBOSS 7(tried 7.1.1 and 7.0.2), I have following exception: 11:19:50,138 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC1: Failed to start service jboss.deployment.unit."my_app

Re: [rules-users] planner: when gets a solution cloned?

2013-02-28 Thread Geoffrey De Smet
Op 28-02-13 09:15, Michiel Vermandel schreef: >Why would you need to know that? Well, if I understand everything correctly, a "Best-solution clone" is needed just to remember/represent that state of the sol

Re: [rules-users] Fill dependent dropdown lists based on a web decision table

2013-02-28 Thread peach_wyss
hy thanks for your answer. 1) I think you have misunderstood me. I don't want this dropdown list in guvnor, we're having our dropdown list on our own form in our application. So guvnor should only provide a way to define this dependencies. 2) Where can I define an enum like this http://docs.j

Re: [rules-users] planner: when gets a solution cloned?

2013-02-28 Thread Michiel Vermandel
>Why would you need to know that? Well, if I understand everything correctly, a "Best-solution clone" is needed just to remember/represent that state of the solution. It does not have to do anything anymore, therefor some data should not be copied and/or initialized upon cloning. It might be "no