Re: [rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Demian Calcaprina
Thanks a lot Davide! This is really nice. We will be using it soon and let the community know if we find something to report. Thanks again, Demian On Fri, Nov 1, 2013 at 6:04 PM, Davide Sottara wrote: > Finally Drools 5.6.0.CR1 community edition has been released! > > It has been mainly a com

Re: [rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Alexandre Porcelli
Davide, Congratulations! We're lucky to have you around, are people like you that makes open source really shine! Thanks! --- Alexandre Porcelli On Nov 1, 2013, at 9:50 PM, Salaboy wrote: > Great work Davide! Please let me know if I can help with something! > Cheers > > Sent from my iPho

Re: [rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Salaboy
Great work Davide! Please let me know if I can help with something! Cheers Sent from my iPhone On 1 Nov 2013, at 22:51, Mark Proctor wrote: > Davide, > > Thank you for al your hard work on this. It’s great when community people > step up to help drive the project forward. > > The core team

Re: [rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Mark Proctor
Davide, Thank you for al your hard work on this. It’s great when community people step up to help drive the project forward. The core team won’t have time for any final QAing of this, so it’s up to the community to test this and make sure it’s ok. Good luck :) Mark On 1 Nov 2013, at 21:04, Da

Re: [rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Michael Anstis
Great work Davide. This shows the power of the community! Sent on the move On 1 Nov 2013 21:05, "Davide Sottara" wrote: > Finally Drools 5.6.0.CR1 community edition has been released! > > It has been mainly a community effort, driven by the use of Drools in > several applications and research p

[rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Davide Sottara
Finally Drools 5.6.0.CR1 community edition has been released! It has been mainly a community effort, driven by the use of Drools in several applications and research projects, but it was possible thanks to the collaboration of the main developer's team and the help of everybody who reported bugs,

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
$firm should be $context...To post the rule in the public sphere I had to modify some variables(legal company issues :-) ). The same goes for the rule name(my replacement of text is not very good). I understand Wolfgang's point...I just made a poor assumption(something as someone who has used droo

[rules-users] Optaplanner - Issue with real-time, chained and shadow variables

2013-11-01 Thread Juan Ignacio Barisich
Hi everybody I am using optaplanner in real-time style. My application domain is similar to the "Vehicle Routing" example ( http://docs.jboss.org/drools/release/6.0.0.CR5/optaplanner-docs/html_single/index.html#vehicleRouting). I mean, I am using chained variables and shadow variables. I have a pro

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread Davide Sottara
Am I wrong or these are not the (only) rules that are being run? 1) The exception is thrown as the consequence of a rule called com.nasdaq.rms.nq.status.Rule_Calculate_Firm_Participation_Ratio_cfb033f33c2b404fb2bff8e1b9af0175 "Rule Calculate Firm Participation Ratio", which is not shown. 2) The

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
Another question(on error interpretation) the stack trace seems to indicate an issue with the consequence and not the condition. Should it be assumed that seeing such errors could indicate an issue on either side of the rule? -- View this message in context: http://drools.46999.n3.nabble.com/

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
I made an assumption(thus why I am asking) for future cases I will use the && separator to handle such cases as I would assume saying something like this would work: Object(a>0 && b>0 && a/b > 100) laune wrote > I haven't read a statement yet that says that, in Drools, LHS terms, > separated by

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread Wolfgang Laun
I haven't read a statement yet that says that, in Drools, LHS terms, separated by a comma (!) must be executed in the order they are written, or that the C/Java semantics for logical expression evaluation is applied. -W On 01/11/2013, gboro54 wrote: > Could you expand upon why this is a poor pr

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
Agreed. In this case it is possible to move to the RHS...but I have to ask what if I need to use the math as part of a constraint. Is it not safe to assume the divisor is 0 even if I do the check? That seems like an issue as I do have cases which this will be required Stephen Masters wrote > Give

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
I changed the rules to the following so I will test and see: rule "Add Baseline to Context if it does not exists exists or not greater then 0" no-loop true when $context:Context($id:id,baselineParticipation==null || baselinePar

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread Stephen Masters
Given that you don’t seem to using the result as a constraint, then I can’t see any benefit to it being on the LHS. So yes, It would be better on the RHS. Steve On 1 Nov 2013, at 17:58, Wolfgang Laun wrote: > I can anticipate the answer where OP says that there is a constraint > restricting a

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread Wolfgang Laun
If the left hand side guarantees that a > 0, a right hand side expression b/a must be safe. -W On 01/11/2013, gboro54 wrote: > So move the math to the rhs? Will that resolve the issues in your opinion? > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Drools-5-5-divid

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
Could you expand upon why this is a poor practice? I assumed that if a part of the pattern doesn't match the expression evaluation is terminated laune wrote > I can anticipate the answer where OP says that there is a constraint > restricting argVolume to > 0. However, I don't think that independe

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
So move the math to the rhs? Will that resolve the issues in your opinion? -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-5-divide-by-0-exception-tp4026582p4026586.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread Wolfgang Laun
I can anticipate the answer where OP says that there is a constraint restricting argVolume to > 0. However, I don't think that independent constraints such as we see them in this rule are evaluated as if they were in a single logical expression, with Java semantics. The seductive possibility of bi

Re: [rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread Stephen Masters
Divide by zero exceptions usually occur when you try to divide by zero. So … first question … is consolidatdVolume.avgVolume ever zero? On 1 Nov 2013, at 16:17, gboro54 wrote: > I have rules like the following: > > rule "Add Baseline to Context if it does not exists exists or not greater > th

[rules-users] Drools 5.5 divide by 0 exception

2013-11-01 Thread gboro54
I have rules like the following: rule "Add Baseline to Context if it does not exists exists or not greater then 0" no-loop true when $context:Context($id:id,baselineParticipation==null || baselineParticipation.baselineRatio==null|

[rules-users] Ask for help with OptaPlanner

2013-11-01 Thread Xi Gong
Hi Folks, I am new to OptaPlanner, so please forgive me if this is a stupid question. I developed a project to solve a worker assignment problem based on OptaPlanner. I have a java class "Demand" which has the information of capacity needed for each shift. I added it to the solution class as a pr