Re: [rules-users] questions on guvnor and drools 5.0

2010-04-13 Thread Libor Nenadál
Hi Jean! Dne 13. dubna 2010 19:41 Jean-Denis Maroie [via Drools - Java Rules Engine] > napsal(a): > > In the test scenario I want to create a list of objects and apply some > rules on it. But Im unable to create my list in the test scenario. When I > have to enter the value of the method "add"

[rules-users] Drools Flow - persistence with JPA and Hibernate

2010-02-04 Thread Libor Nenadál
Hi, I am trying to get working persistence for workflow and also for audit trail. What really confuses me is why for workflow you use JPA and for auditing Hibernate (chapters 5.1 and 5.3 in the https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/h

Re: [rules-users] Guvnor Test Scenario - value equality

2009-11-13 Thread Libor Nenadál
.jboss.org > [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Libor Nenadál > Sent: 13 November 2009 13:59 > To: rules-users@lists.jboss.org > Subject: [rules-users] Guvnor Test Scenario - value equality > > > Hello, I came to a prob

[rules-users] Guvnor Test Scenario - value equality

2009-11-13 Thread Libor Nenadál
Hello, I came to a problem when scenario fails because field values do not equal to those expected although they actually do. Here is the result after scenario run: [TransactionBatch] field [otherPartyAccountNumber] was [12345678] expected [12345678]. [TransactionBatch] field [otherPartyAccountSu

Re: [rules-users] questions on guvnor and drools 5.0

2009-08-17 Thread Libor Nenadál
tance" (without the quotes). Cheers, Libor Libor Nenadál wrote: > > > Garner, Shawn-3 wrote: >> >> 2) How do you use the test scenarios with complex object structures? >> -eg Create a fact in working memory that has another Object in it which >> in

Re: [rules-users] questions on guvnor and drools 5.0

2009-08-14 Thread Libor Nenadál
I am not experienced in GWT. Thanks, Libor Nenadál -- View this message in context: http://www.nabble.com/questions-on-guvnor-and-drools-5.0-tp23821810p24971311.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-use

Re: [rules-users] Why is a flat object recommended?

2009-08-14 Thread Libor Nenadál
. If you want to exploit those properly in a rule engine, > best to use real relations. > > Mark > Libor Nenadál wrote: >> Mark Proctor wrote: >> >>> We can exploit cartesian products and indexing for == constraints. If >>> its a nested model we have to

Re: [rules-users] Why is a flat object recommended?

2009-08-13 Thread Libor Nenadál
Mark Proctor wrote: > > We can exploit cartesian products and indexing for == constraints. If > its a nested model we have to iterate over all possible instances. The > other problem is if the nested model changes the engine has no idea this > has happened, which if you are not careful can le

Re: [rules-users] How to create nested rules in Drool Guvnor

2009-08-13 Thread Libor Nenadál
Hi Pardeep, you cannot nest rules. You can solve the situation with 2 rules like: rule "big amount discount" when Basket( total > 4000 ) discount: Discount() then discount.percentage = discount.percentage + 20; end rule "preferred time discount" when Clock( 6 < time < 9 )

Re: [rules-users] using BigDecimal in rules

2009-03-16 Thread Libor Nenadál
The problem with BigDecimal is this: (new BigDecimal("43.0")).equals(new BigDecimal("43")) is evaluated to false but (new BigDecimal("43.0")).compareTo(new BigDecimal("43")) is evaluated to 0 => they are equal Note that you should use String in constructor instead of double otherwise you get some

Re: [rules-users] Localization in DSL

2009-03-13 Thread Libor Nenadál
Hello, I want to ask if there are any news in this area. Localization of BRMS (Guvnor) is the first step, but localization of rules would mean more complex changes in the way the DSL is stored and used. Is there any ongoing work in this area or is it suspended for now? Cheers, Libor Fernando Me